<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<!-- Content Header (Page header) -->
<section class="content-header" style="">
    <h1>
        商户管理
        <small>商户管理页面</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> 主页</a></li>
        <li><a href="#">商户管理</a></li>
        <li class="active">商户管理页面</li>
    </ol>
</section>

<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <!-- /.box-header -->
                <div class="box-body">
                    <div id="toolbar">
                        <form class="form-inline" id="searchForm">
                            <div class="form-group">
                                <label for="searchuserName"> 用户名</label>
                                <input type="text" class="form-control input-sm" name="userName" id="searchuserName" placeholder="请输入用户名">
                            </div>
                            <div class="form-group">
                                <label for="searchcompanyName">
                                    商户名称</label>
                                <input type="text" class="form-control input-sm" name="companyName" id="searchcompanyName" placeholder="商户名称">
                            </div>
                            <div class="btn-group btn-group-sm">
                                <button type="button" class="btn btn-default" onclick="javascript:$('table').bootstrapTable('refresh', {silent: true});">
                                    <i class="glyphicon glyphicon-search"></i>
                                    查询
                                </button>
                                <button type="reset" class="btn btn-default">
                                    <i class="glyphicon glyphicon-trash"></i>
                                    清空
                                </button>
                            </div>
                        </form>
                        <div class="btn-group btn-group-sm">
                            <!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
                            <button onclick="yin()" shiro:hasPermission="company:create" type="button" id="addBtn" class="btn btn-default"
                                    data-toggle="modal"
                                    data-target="#addModal"><i class="glyphicon glyphicon-plus"></i> 新增
                            </button>
                            <!-- Indicates caution should be taken with this action -->
                            <button shiro:hasPermission="company:update" type="button" id="editBtn" class="btn btn-default"
                                    data-toggle="modal"
                                    data-target="#editModal"
                                    data-action="{type:'editable',form:'#editForm',table:'#table',after:'editAfter'}"
                                    disabled><i class="glyphicon glyphicon-edit"></i> 修改
                            </button>
                            <!-- Indicates a dangerous or potentially negative action -->
                            <button shiro:hasPermission="company:delete" type="button" id="deleteBtn" class="btn btn-default" data-toggle="modal"
                                    data-target="#deleteModal"
                                    data-action="{type:'delete',form:'#deleteForm',idField:'id',table:'#table'}"
                                    disabled><i class="glyphicon glyphicon-remove"></i> 删除
                            </button>
                        </div>
                    </div>
                    <table id="table"></table>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->

        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
</section>
<!-- /.content -->

<!-- add Modal -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="addModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="addModalLabel">添加商户信息</h4>
            </div>
            <div class="modal-body">
                <form id="addForm">
                    <div class="form-group">
                        <label class="control-label" for="companyName"><span class="asterisk">*</span>商户名称:</label>
                        <input id="companyName" type="text" class="form-control" name="companyName" placeholder="商户名称"
                               minlength="3" required>
                        <div class="help-block with-errors"></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="userName"><span class="asterisk">*</span>用户名:</label>
                        <input id="userName" type="text" class="form-control" name="userName" placeholder="用户名"
                               minlength="3" required>
                        <div class="help-block with-errors"></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="password"><span class="asterisk">*</span>密码:</label>
                        <input type="password" id="password" class="form-control" minlength="6"
                               name="password" placeholder="输入密码" required>
                        <div class="help-block with-errors"></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="inputPasswordConfirm"><span
                                class="asterisk">*</span>确认密码:</label>
                        <input type="password" class="form-control" id="inputPasswordConfirm" minlength="6"
                               data-match="#password" data-match-error="密码输入不一致。" name="chkpassowrd" placeholder="确认密码"
                               required>
                        <div class="help-block with-errors"></div>
                    </div>

                    <div class="form-group">
                        <label class="control-label" ><span class="asterisk">*</span>需要配置设备:</label>
                            需要<input type="radio"  name="isEverySet" id="xiuyao" value="1" onclick="ispayvisible(1)" checked>
                            不需要<input type="radio" name="isEverySet" id="buxiuyao" value="0" onclick="ispayvisible(0)">
                        <div class="help-block with-errors" ></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" ><span class="asterisk">*</span>是否锁定:</label>
                        是<input type="radio"  name="locked" id="every" value="1">
                        否<input type="radio" name="locked" id="every1" value="0" checked>
                        <div class="help-block with-errors"></div>
                    </div>
                    <input type="hidden" id="payChannel">
                    <div class="form-group" id="ZFQD">
                        <label class="control-label" for="type"><span class="asterisk">*</span>支付渠道:</label>
                        <select name="type" id="type" multiple class="form-control select2">
                            <option th:each="type : ${types}" th:value="${type}" th:text="${type.info}">
                                支付渠道
                            </option>
                        </select>
                        <div class="help-block with-errors"></div>

                    </div>
                    <div class="form-group">
                        <label class="control-label" for="contactName">联系人:</label>
                        <input id="contactName" type="text" class="form-control" name="contactName" placeholder="联系人"
                               minlength="2">
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="contactNumber">联系电话:</label>
                        <input id="contactNumber" type="text" class="form-control" name="contactNumber" placeholder="联系电话"
                               minlength="3">
                        <div class="help-block with-errors"></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="contactAddress">联系地址:</label>
                        <input id="contactAddress" type="text" class="form-control" name="contactAddress" placeholder="联系地址"
                               minlength="3">
                        <div class="help-block with-errors"></div>
                    </div>
                    <div id="WX">
                        <hr/>
                        <h4 class="modal-title" id="wxzf">微信支付</h4>

                        <input type="hidden"  id="payType">
                        <input type="hidden"  id="wxIsCallback">
                        <div class="form-group">
                            <label class="control-label" for="paytype1"><span class="asterisk">*</span>支付类型:</label>
                            <select name="paytype1" id="paytype1" multiple class="form-control select2">
                                <option th:each="paytype : ${paytypes}" th:value="${paytype}" th:text="${paytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" ><span class="asterisk">*</span>需要子商户:</label>
                            需要<input type="radio"  name="wxIsEvery" id="wxXiuyaoZiShangHu" value="1" onclick="wxIsZiShangHu()">
                            不需要<input type="radio" name="wxIsEvery" id="wxBuxiuyaoZiShangHu" value="0" onclick="wxIsbuZiShangHu()" checked>
                            <div class="help-block with-errors" ></div>
                        </div>
                        <div class="form-group" id="wxZiAppID" style="display:none">
                            <label class="control-label" for="WXChildAppID"><span class="asterisk">*</span>子商户AppID:</label>
                            <input id="WXChildAppID" type="text" class="form-control"  placeholder="输入子商户AppID">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="appID"><span class="asterisk">*</span>AppID:</label>
                            <input id="appID" type="text" class="form-control"  placeholder="输入AppID">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mchid"><span class="asterisk">*</span>商户号:</label>
                            <input id="mchid" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="key"><span class="asterisk">*</span>API密钥:</label>
                            <input id="key" type="text" class="form-control" placeholder="输入API密钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="AppSecret">开发者密码:</label>
                            <input id="AppSecret" type="text" class="form-control" placeholder="输入开发者密码">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editunionpaytype"><span class="asterisk">*</span>选择导入的文件:</label>
                            <input type="file" id="upload-file" />
                            <a id="start-upload" href="javascript:void(0);" onclick="uploadFile(0);">开始上传</a>
                        </div>
                        <div class="form-group" id="wxCallbacks" style="display:none">
                            <label class="control-label" for="WXCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="WXCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="remark">备注:</label>
                            <input id="remark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="ZF">
                        <hr/>
                        <h4 class="modal-title" id="zfb">支付宝支付</h4>

                        <input type="hidden"  id="payType2">
                        <input type="hidden"  id="aliIsCallback">
                        <div class="form-group">
                            <label class="control-label" for="zpaytype"><span class="asterisk">*</span>支付类型:</label>
                            <select name="zpaytype" id="zpaytype" multiple class="form-control select2"
                                    >
                                <option th:each="zpaytype : ${paytypes}" th:value="${zpaytype}" th:text="${zpaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" ><span class="asterisk">*</span>系统商编号:</label>
                            需要<input type="radio"  name="wxIsEvery" id="aliXiuyaoZiShangHu" value="1" onclick="aliIsZiShangHu()">
                            不需要<input type="radio" name="wxIsEvery" id="aliBuxiuyaoZiShangHu" value="0" onclick="aliIsbuZiShangHu()" checked>
                            <div class="help-block with-errors" ></div>
                        </div>
                        <div class="form-group" id="sysServiceProviderIdS" style="display:none">
                            <label class="control-label" for="sysServiceProviderId"><span class="asterisk">*</span>子商户AppID:</label>
                            <input id="sysServiceProviderId" type="text" class="form-control"  placeholder="输入子商户AppID">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="pid"><span class="asterisk">*</span>Pid:</label>
                            <textarea id="pid" class="form-control" cols="50" rows="3" placeholder="输入Pid"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="appID1"><span class="asterisk">*</span>Appid:</label>
                            <textarea id="appID1" class="form-control" cols="50" rows="3" placeholder="输入Appid"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="privateKey"><span class="asterisk">*</span>Privatekey:</label>
                            <textarea id="privateKey" class="form-control" cols="50" rows="3" placeholder="输入Privatekey"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="publicKey"><span class="asterisk">*</span>Publickey:</label>
                            <input id="publicKey"  class="form-control" name="publicKey" placeholder="输入Publickey">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="alipayPublicKey"><span class="asterisk">*</span>AlipayPublicKey:</label>
                            <input id="alipayPublicKey" type="text" class="form-control" placeholder="输入AlipayPublicKey">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="aliCallbacks" style="display:none">
                            <label class="control-label" for="aliCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="aliCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="remark1">备注:</label>
                            <input id="remark1" type="text" class="form-control"  placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="ICBC">
                        <hr/>
                        <h4 class="modal-title" id="icbcpay">工行聚合支付</h4>

                        <input type="hidden"  id="icbcPayType">
                        <div class="form-group">
                            <label class="control-label" for="icbcPayTypeselect"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="icbcPayTypeselect" multiple class="form-control select2">
                                <option th:each="icbcpaytype : ${paytypes}" th:value="${icbcpaytype.payType}" th:text="${icbcpaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <!--<div class="form-group">
                            <label class="control-label" for="icbcMchid"><span class="asterisk">*</span>Mchid:</label>
                            <input id="icbcMchid" type="text" class="form-control"  placeholder="输入Mchid">
                            <div class="help-block with-errors"></div>
                        </div>-->
                        <div class="form-group">
                            <label class="control-label" for="icbcAppId"><span class="asterisk">*</span>AppId:</label>
                            <input id="icbcAppId" type="text" class="form-control" placeholder="输入AppId">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="merSerId"><span class="asterisk">*</span>商户或服务商编号:</label>
                            <input id="merSerId" type="text" class="form-control" placeholder="输入商户或服务商编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="merSerPrtclNo"><span class="asterisk">*</span>商户或服务商收单产品协议编号:</label>
                            <input id="merSerPrtclNo" type="text" class="form-control" placeholder="输入商户或服务商收单产品协议编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="icbcPrivateKey"><span class="asterisk">*</span>私钥:</label>
                            <textarea id="icbcPrivateKey" class="form-control" cols="50" rows="3" placeholder="输入私钥"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="icbcPublicKey"><span class="asterisk">*</span>公钥:</label>
                            <textarea id="icbcPublicKey" class="form-control" cols="50" rows="3" placeholder="输入公钥"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="icbcRemark">备注:</label>
                            <input id="icbcRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="UNION">
                        <hr/>
                        <h4 class="modal-title" id="unionpay">银联支付</h4>
                        <input type="hidden"  id="unionIsCallback">
                        <input type="hidden"  id="payType3">
                        <div class="form-group">
                            <label class="control-label" for="unionpaytype"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="unionpaytype" multiple class="form-control select2">
                                <option th:each="unionpaytype : ${paytypes}" th:value="${unionpaytype}" th:text="${unionpaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mchid1"><span class="asterisk">*</span>Mchid:</label>
                            <input id="mchid1" type="text" class="form-control"  placeholder="输入Mchid">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="key1"><span class="asterisk">*</span>Key:</label>
                            <input id="key1" type="text" class="form-control" placeholder="输入Key">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="unionCallbacks" style="display:none">
                            <label class="control-label" for="unionCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="unionCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="remark2">备注:</label>
                            <input id="remark2" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="QDNS">
                        <hr/>
                        <h4 class="modal-title" id="qingDaoNongShang">青岛农商</h4>

                        <input type="hidden"  id="payType4">
                        <div class="form-group">
                            <label class="control-label" for="qingDaoNongShangtype"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="qingDaoNongShangtype" multiple class="form-control select2">
                                <option th:each="qingDaoNongShangtype : ${paytypes}" th:value="${qingDaoNongShangtype}" th:text="${qingDaoNongShangtype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="commid"><span class="asterisk">*</span>商户标识:</label>
                            <input id="commid" type="text" class="form-control"  placeholder="输入商户标识">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="commoperid"><span class="asterisk">*</span>商户操作员编号:</label>
                            <input id="commoperid" type="text" class="form-control" placeholder="输入商户操作员编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="commstoreno"><span class="asterisk">*</span>商户门店编号:</label>
                            <input id="commstoreno" type="text" class="form-control" placeholder="输入商户门店编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="devsn"><span class="asterisk">*</span>机器终端编号:</label>
                            <input id="devsn" type="text" class="form-control" placeholder="输入机器终端编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="qingDaoNongShangkey"><span class="asterisk">*</span>商户秘钥:</label>
                            <input id="qingDaoNongShangkey" type="text" class="form-control" placeholder="输入商户秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="remark3">备注:</label>
                            <input id="remark3" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="ShouQianBa">
                        <hr/>
                        <h4 class="modal-title" id="ShouQianBaTi">收钱吧</h4>

                        <input type="hidden"  id="ShouQianBaPayTypes">
                        <div class="form-group">
                            <label class="control-label" for="ShouQianBaPayType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="ShouQianBaPayType" multiple class="form-control select2">
                                <option th:each="ShouQianBaPaytype : ${paytypes}" th:value="${ShouQianBaPaytype}" th:text="${ShouQianBaPaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="terminal_sn"><span class="asterisk">*</span>终端号:</label>
                            <input id="terminal_sn" type="text" class="form-control"  placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="terminal_key"><span class="asterisk">*</span>终端密钥:</label>
                            <input id="terminal_key" type="text" class="form-control" placeholder="输入终端密钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="remark3">备注:</label>
                            <input id="remark4" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="ccbb">
                        <hr/>
                        <h4 class="modal-title" id="ccbbpay">龙支付</h4>

                        <input type="hidden"  id="ccbbChecked">

                        <input type="hidden"  id="ccbbPayTypes">
                        <div class="form-group">
                            <label class="control-label" for="ccbbPayType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="ccbbPayType" multiple class="form-control select2">
                                <option th:each="ccbbPayType : ${paytypes}" th:value="${ccbbPayType}" th:text="${ccbbPayType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ccbbPayType">聚合支付:</label>
                            <input type="checkbox" onclick="checkboxOnclick(this)"/>
                            <label class="control-label" for="ccbbPayType">人民币数字支付:</label>
                            <input type="checkbox" onclick="checkboxTwoclick(this)"/>
                            <label class="control-label" for="ccbbPayType">云闪付:</label>
                            <input type="checkbox" onclick="checkboxThreeclick(this)"/>
                            <label class="control-label" for="ccbbPayType">静态码:</label>
                            <input type="checkbox" onclick="checkboxFourclick(this)"/>
                        </div>
                        <div id="aggregation">
                            <div class="form-group">
                                <label class="control-label" for="MERCHANTID"><span class="asterisk">*</span>聚合支付的商户号:</label>
                                <input id="MERCHANTID" type="text" class="form-control"  placeholder="输入商户号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="POSID"><span class="asterisk">*</span>聚合支付的柜台号:</label>
                                <input id="POSID" type="text" class="form-control" placeholder="输入柜台号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="BRANCHID"><span class="asterisk">*</span>聚合支付的分行号:</label>
                                <input id="BRANCHID" type="text" class="form-control" placeholder="输入聚合支付的分行号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="ccbbPubKey"><span class="asterisk">*</span>聚合支付的公钥:</label>
                                <textarea id="ccbbPubKey" class="form-control" cols="50" rows="5" placeholder="输入公钥"></textarea>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="USERID"><span class="asterisk">*</span>操作员号:</label>
                                <input id="USERID" type="text" class="form-control" placeholder="输入操作员号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="ccbbPASSWORD"><span class="asterisk">*</span>密码:</label>
                                <input id="ccbbPASSWORD" type="text" class="form-control" placeholder="输入密码">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="port"><span class="asterisk">*</span>端口号:</label>
                                <input id="port" type="text" class="form-control" placeholder="输入端口号">
                                <div class="help-block with-errors"></div>
                            </div>
                        </div>
                        <div id="DC">
                            <div class="form-group">
                                <label class="control-label" for="DCMERCHANTID"><span class="asterisk">*</span>人民币数字的商户号:</label>
                                <input id="DCMERCHANTID" type="text" class="form-control"  placeholder="输入商户号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="DCPOSID"><span class="asterisk">*</span>人民币数字的柜台号:</label>
                                <input id="DCPOSID" type="text" class="form-control" placeholder="输入柜台号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="DCBRANCHID"><span class="asterisk">*</span>人民币数字的分行号:</label>
                                <input id="DCBRANCHID" type="text" class="form-control" placeholder="输入分行号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="ccbbDCPubKey"><span class="asterisk">*</span>人民币数字的公钥:</label>
                                <textarea id="ccbbDCPubKey" class="form-control" cols="50" rows="5" placeholder="输入公钥"></textarea>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="DCpubKey1"><span class="asterisk">*</span>瓦片公钥(PUBKEY1):</label>
                                <textarea id="DCpubKey1" class="form-control" cols="50" rows="5" placeholder="输入公钥"></textarea>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="DCpriKey1"><span class="asterisk">*</span>瓦片私钥(PRIBKEY1):</label>
                                <textarea id="DCpriKey1" class="form-control" cols="50" rows="5" placeholder="输入瓦片私钥(PRIBKEY1)"></textarea>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="DCpubKey2"><span class="asterisk">*</span>瓦片平台关联密钥对(PUBKEY2):</label>
                                <textarea id="DCpubKey2" class="form-control" cols="50" rows="5" placeholder="输入瓦片平台关联密钥对(PUBKEY2)"></textarea>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="DCFTCORPID"><span class="asterisk">*</span>瓦片调用方ID:</label>
                                <input id="DCFTCORPID" type="text" class="form-control" placeholder="输入瓦片调用方ID">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="DCUSERID"><span class="asterisk">*</span>人民币数字的操作员号:</label>
                                <input id="DCUSERID" type="text" class="form-control" placeholder="输入人民币数字的操作员号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="DCPASSWORD"><span class="asterisk">*</span>人民币数字的操作员密码:</label>
                                <input id="DCPASSWORD" type="text" class="form-control" placeholder="输入人民币数字的操作员密码">
                                <div class="help-block with-errors"></div>
                            </div>
                        </div>
                        <div id="UNIONPAYPS">
                            <div class="form-group">
                                <label class="control-label" for="appidUNIONPAYPS"><span class="asterisk">*</span>appid:</label>
                                <input id="appidUNIONPAYPS" type="text" class="form-control"  placeholder="输入appid">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="appkeyUNIONPAYPS"><span class="asterisk">*</span>appkey:</label>
                                <input id="appkeyUNIONPAYPS" type="text" class="form-control"  placeholder="输入appkey">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="merchantCodeUNIONPAYPS"><span class="asterisk">*</span>商户号:</label>
                                <input id="merchantCodeUNIONPAYPS" type="text" class="form-control"  placeholder="输入商户号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="terminalCodeUNIONPAYPS"><span class="asterisk">*</span>终端号:</label>
                                <input id="terminalCodeUNIONPAYPS" type="text" class="form-control"  placeholder="输入终端号">
                                <div class="help-block with-errors"></div>
                            </div>
                        </div>
                        <div id="SCANPAY">
                            <h5>以下为建行扫码配置</h5>
                            <div class="form-group">
                                <label class="control-label" for="mchIdSCANPAY">
                                    <span class="asterisk">*</span>商户号:
                                </label>
                                <input id="mchIdSCANPAY" type="text" class="form-control"  placeholder="输入商户号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="authcodeSCANPAY"><span class="asterisk">*
                                </span>授权码 :</label>
                                <input id="authcodeSCANPAY" type="text" class="form-control"  placeholder="授权码">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="termNoSCANPAY">
                                    <span class="asterisk">*</span>终端编号:</label>
                                <input id="termNoSCANPAY" type="text" class="form-control"  placeholder="输入终端编号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="posIdSCANPAY"><span class="asterisk">*</span>POSID:
                                </label>
                                <input id="posIdSCANPAY" type="text" class="form-control"  placeholder="输入POSID">
                                <div class="help-block with-errors"></div>
                            </div>

                            <input type="hidden" id="keySCANPAY" value="">

                            <div class="form-group">
                                <input type="button" value="下载建行key" onclick="download_ccb_sk_click()">
                                <div class="help-block with-errors"></div>
                            </div>

                            <h5>以上为建行扫码配置</h5>
                        </div>
                        <div class="form-group" id="ccbbCallbacks" style="display:none">
                            <label class="control-label" for="ccbbAPPID"><span class="asterisk">*</span>APPID:</label>
                            <input id="ccbbAPPID" type="text" class="form-control" placeholder="输入APPID">
                            <div class="help-block with-errors"></div>
                            <label class="control-label" for="ccbbCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="ccbbCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ccbbremark">备注:</label>
                            <input id="ccbbremark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="kancloud">
                        <hr/>
                        <h4 class="modal-title" id="kancloudpay">移领支付</h4>

                        <input type="hidden"  id="kancloudTypes">
                        <div class="form-group">
                            <label class="control-label" for="kancloudType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="kancloudType" multiple class="form-control select2">
                                <option th:each="kancloudType : ${paytypes}" th:value="${kancloudType}" th:text="${kancloudType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="merchantNum"><span class="asterisk">*</span>门店编号:</label>
                            <input id="merchantNum" type="text" class="form-control"  placeholder="输入门店编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="kancloudKey"><span class="asterisk">*</span>交易密钥:</label>
                            <input id="kancloudKey" type="text" class="form-control" placeholder="输入交易密钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="kancloudRemark">备注:</label>
                            <input id="kancloudRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="leshua">
                        <hr/>
                        <h4 class="modal-title" id="leshuas">乐刷支付</h4>

                        <input type="hidden"  id="leshuaTypes">
                        <div class="form-group">
                            <label class="control-label" for="leshuaType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="leshuaType" multiple class="form-control select2">
                                <option th:each="leshuaType : ${paytypes}" th:value="${leshuaType}" th:text="${leshuaType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="leshuamerchantId"><span class="asterisk">*</span>商户号:</label>
                            <input id="leshuamerchantId" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="leshuaKey"><span class="asterisk">*</span>交易密钥:</label>
                            <input id="leshuaKey" type="text" class="form-control" placeholder="输入交易密钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="leshuaRemark">备注:</label>
                            <input id="leshuaRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="chinaums">
                        <hr/>
                        <h4 class="modal-title" id="chinaumss">大华捷通</h4>

                        <input type="hidden"  id="chinaumsIsCallback">
                        <input type="hidden"  id="chinaumsTypes">
                        <div class="form-group">
                            <label class="control-label" for="chinaumsType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="chinaumsType" multiple class="form-control select2">
                                <option th:each="chinaumsType : ${paytypes}" th:value="${chinaumsType}" th:text="${chinaumsType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="chinaumsmerchantId"><span class="asterisk">*</span>商户号:</label>
                            <input id="chinaumsmerchantId" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="chinaumsKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="chinaumsKey" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="chinaumsdevsn"><span class="asterisk">*</span>终端号:</label>
                            <input id="chinaumsdevsn" type="text" class="form-control" placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="chinaumsCallbacks" style="display:none">
                            <label class="control-label" for="chinaumsCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="chinaumsCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="chinaumsRemark">备注:</label>
                            <input id="chinaumsRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="unionschool">
                        <hr/>
                        <h4 class="modal-title" id="UNIONSCHOLLS">银联校园版</h4>

                        <input type="hidden"  id="unionschoolIsCallback">
                        <input type="hidden"  id="unionschoolTypes">
                        <div class="form-group">
                            <label class="control-label" for="unionschoolType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="unionschoolType" multiple class="form-control select2">
                                <option th:each="unionschoolType : ${paytypes}" th:value="${unionschoolType}" th:text="${unionschoolType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="unionschoolBrandId"><span class="asterisk">*</span>品牌号:</label>
                            <input id="unionschoolBrandId" type="text" class="form-control"  placeholder="输入品牌号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="unionschoolOpshopId"><span class="asterisk">*</span>门店号:</label>
                            <input id="unionschoolOpshopId" type="text" class="form-control" placeholder="输入门店号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="unionschoolBussType"><span class="asterisk">*</span>业务类型:</label>
                            <input id="unionschoolBussType" type="text" class="form-control" placeholder="输入业务类型">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="unionschoolKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="unionschoolKey" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="unionschoolCallbacks" style="display:none">
                            <label class="control-label" for="unionschoolCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="unionschoolCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="unionschoolRemark">备注:</label>
                            <input id="unionschoolRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="FuHuiBa">
                        <hr/>
                        <h4 class="modal-title" id="FuHuiBas">付惠吧</h4>

                        <input type="hidden"  id="FuHuiBaCallback">
                        <input type="hidden"  id="FuHuiBaTypes">
                        <div class="form-group">
                            <label class="control-label" for="FuHuiBaType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="FuHuiBaType" multiple class="form-control select2">
                                <option th:each="FuHuiBaType : ${paytypes}" th:value="${FuHuiBaType}" th:text="${FuHuiBaType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="FuHuiBaKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="FuHuiBaKey" type="text" class="form-control"  placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="FuHuiBaRemark">备注:</label>
                            <input id="FuHuiBaRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="ksrcb">
                        <hr/>
                        <h4 class="modal-title" id="ksrcbs">江苏昆山农商银行</h4>

                        <input type="hidden"  id="ksrcbCallback">
                        <input type="hidden"  id="ksrcbTypes">
                        <div class="form-group">
                            <label class="control-label" for="ksrcbType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="ksrcbType" multiple class="form-control select2">
                                <option th:each="ksrcbType : ${paytypes}" th:value="${ksrcbType}" th:text="${ksrcbType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ksrcbSubMerNo"><span class="asterisk">*</span>子商户号:</label>
                            <input id="ksrcbSubMerNo" type="text" class="form-control"  placeholder="输入子商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ksrcbSubMerName"><span class="asterisk">*</span>子商户名:</label>
                            <input id="ksrcbSubMerName" type="text" class="form-control"  placeholder="输入子商户名">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ksrcbMerStoreNo"><span class="asterisk">*</span>商户终端标识编号:</label>
                            <input id="ksrcbMerStoreNo" type="text" class="form-control"  placeholder="输入商户终端标识编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ksrcbRemark">备注:</label>
                            <input id="ksrcbRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="SuiXingPay">
                        <hr/>
                        <h4 class="modal-title" id="SuiXingPays">随行付</h4>
                        <input type="hidden"  id="SuiXingPayIsCallback">
                        <input type="hidden"  id="SuiXingPaytypes">
                        <div class="form-group">
                            <label class="control-label" for="SuiXingPaytype"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="SuiXingPaytype" multiple class="form-control select2">
                                <option th:each="SuiXingPaytype : ${paytypes}" th:value="${SuiXingPaytype}" th:text="${SuiXingPaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mno"><span class="asterisk">*</span>商户编号:</label>
                            <input id="mno" type="text" class="form-control" placeholder="输入商户编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mno">手续费(需要分账才填写):</label>
                            <input id="poundage" type="text" class="form-control" placeholder="输入手续费">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mno">添加分账商家信息:</label>
                            <input type="hidden"  id="SuiXingFei" value="0">
                            <input type='button' id="idSigning" value='签约' name="add" onclick="signing()"></td>
                            <input type='button' value='增加' name="add" onclick="addLine()"></td>
                            <input type="hidden"  id="startSigning" value="0">
                            <td colspan="2">
                                <table border="1" style="font-size: 12px;" width="80%" id="account">
                                    <tr>
                                        <td width="40%" align="center">分账商户编号</td>
                                        <td width="30%" align="center">分账比例（%）</td>
                                        <td width="30%" align="center">分账商户名称（%）</td>
                                    <tr>
                                </table>
                            </td>
                        </div>
                        <div class="form-group" id="SuiXingPayCallbacks" style="display:none">
                            <label class="control-label" for="SuiXingPayCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="SuiXingPayCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="SuiXingPayremark">备注:</label>
                            <input id="SuiXingPayremark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="abc">
                        <hr/>
                        <h4 class="modal-title" id="abcs">中国农行</h4>

                        <input type="hidden"  id="abcCallback">
                        <input type="hidden"  id="abcBu">
                        <input type="hidden"  id="abcTypes">
                        <div class="form-group">
                            <label class="control-label" for="abcbType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="abcbType" multiple class="form-control select2">
                                <option th:each="abcbType : ${paytypes}" th:value="${abcbType}" th:text="${abcbType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="abcmerchantID"><span class="asterisk">*</span>商家号:</label>
                            <input id="abcmerchantID" type="text" class="form-control"  placeholder="输入商家号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="abcmerchantPrivateKey"><span class="asterisk">*</span>商家密码:</label>
                            <input id="abcmerchantPrivateKey" type="text" class="form-control"  placeholder="输入商家密码">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="receiveAccount">收款方账号:</label>
                            <input id="receiveAccount" type="text" class="form-control"  placeholder="输入收款方账号">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="terminalNo"><span class="asterisk">*</span>扫码支付终端号:</label>
                            <input id="terminalNo" type="text" class="form-control"  placeholder="输入扫码支付终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="abcupload-file"><span class="asterisk">*</span>选择导入(.pfx)文件:</label>
                            <input type="file" id="abcupload-file" />
                            <a id="abcstart-upload" href="javascript:void(0);" onclick="abcuploadFile(0);">开始上传</a>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="abcRemark">备注:</label>
                            <input id="abcRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="qsf">
                        <hr/>
                        <h4 class="modal-title" id="qsfs">轻松付</h4>
                        <input type="hidden"  id="qsfIsCallback">
                        <input type="hidden"  id="qsftypes">
                        <div class="form-group">
                            <label class="control-label" for="qsftype"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="qsftype" multiple class="form-control select2">
                                <option th:each="qsftype : ${paytypes}" th:value="${qsftype}" th:text="${qsftype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" ><span class="asterisk">*</span>需要子商户:</label>
                            需要<input type="radio"  name="qsfIsEvery" id="qsfXiuyaoZiShangHu" value="1" onclick="qsfIsZiShangHu()">
                            不需要<input type="radio" name="qsfIsEvery" id="qsfBuxiuyaoZiShangHu" value="0" onclick="qsfIsbuZiShangHu()" checked>
                            <div class="help-block with-errors" ></div>
                        </div>
                        <div class="form-group" id="qsfZiAppID" style="display:none">
                            <label class="control-label" for="qsfChildAppID"><span class="asterisk">*</span>子商户AppID:</label>
                            <input id="qsfChildAppID" type="text" class="form-control"  placeholder="输入子商户AppID">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="qsfsubMchids" style="display:none">
                            <label class="control-label" for="qsfSubMchid"><span class="asterisk">*</span>子商户号:</label>
                            <input id="qsfSubMchid" type="text" class="form-control"  placeholder="输入子商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="wxChannel"><span class="asterisk">*</span>通道:1.轻松付，2:微信人脸，3:k12</label>
                            <input id="wxChannel" type="text" class="form-control"  placeholder="输入通道">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="qsfappID"><span class="asterisk">*</span>AppID:</label>
                            <input id="qsfappID" type="text" class="form-control"  placeholder="输入AppID">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="qsfmchid"><span class="asterisk">*</span>商户号:</label>
                            <input id="qsfmchid" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="qsfmchSerialNo"><span class="asterisk">*</span>商户证书序列号:</label>
                            <input id="qsfmchSerialNo" type="text" class="form-control"  placeholder="输入商户证书序列号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="qsfSchoolId">学校编号(1填写):</label>
                            <input id="qsfSchoolId" type="text" class="form-control"  placeholder="输入学校编号">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="qsfOrganizationId">机构id(2填写):</label>
                            <input id="qsfOrganizationId" type="text" class="form-control"  placeholder="输入机构id">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="qsfcertificate"><span class="asterisk">*</span>微信支付平台证书:</label>
                            <textarea id="qsfcertificate" class="form-control" cols="50" rows="3" placeholder="输入微信支付平台证书"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="wechatpaySerial"><span class="asterisk">*</span>微信支付平台证书序列号:</label>
                            <textarea id="wechatpaySerial" class="form-control" cols="50" rows="3" placeholder="输入微信支付平台证书序列号"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="apiV3Key"><span class="asterisk">*</span>APIv3秘钥:</label>
                            <textarea id="apiV3Key" class="form-control" cols="50" rows="3" placeholder="输入APIv3秘钥"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="qsfkey">API密钥(2可以选填):</label>
                            <input id="qsfkey" type="text" class="form-control"  placeholder="输入API密钥">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="qsfprivateKey"><span class="asterisk">*</span>私钥:</label>
                            <textarea id="qsfprivateKey" class="form-control" cols="50" rows="3" placeholder="输入私钥"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="qsfremark">备注:</label>
                            <input id="qsfremark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="ShengCan">
                        <hr/>
                        <h4 class="modal-title" id="ShengCans">智慧校园盛灿</h4>
                        <input type="hidden"  id="ShengCantypes">
                        <div class="form-group">
                            <label class="control-label" for="ShengCantype"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="ShengCantype" multiple class="form-control select2">
                                <option th:each="ShengCantype : ${paytypes}" th:value="${ShengCantype}" th:text="${ShengCantype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ShengCanSchoolNo"><span class="asterisk">*</span>学校编号:</label>
                            <input id="ShengCanSchoolNo" type="text" class="form-control"  placeholder="输入学校编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ShengCankey"><span class="asterisk">*</span>key:</label>
                            <input id="ShengCankey" type="text" class="form-control"  placeholder="输入key">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ShengCanremark">备注:</label>
                            <input id="ShengCanremark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="POSTong">
                        <hr/>
                        <h4 class="modal-title" id="POSTongs">Pos通</h4>
                        <input type="hidden"  id="POSTongtypes">
                        <div class="form-group">
                            <label class="control-label" for="POSTongtype"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="POSTongtype" multiple class="form-control select2">
                                <option th:each="POSTongtype : ${paytypes}" th:value="${POSTongtype}" th:text="${POSTongtype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="POSTongappid"><span class="asterisk">*</span>appid:</label>
                            <input id="POSTongappid" type="text" class="form-control"  placeholder="输入appid">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="POSTongappkey"><span class="asterisk">*</span>appkey:</label>
                            <input id="POSTongappkey" type="text" class="form-control"  placeholder="输入appkey">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="POSTongmerchantCode"><span class="asterisk">*</span>商户号:</label>
                            <input id="POSTongmerchantCode" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="POSTongterminalCode"><span class="asterisk">*</span>终端号:</label>
                            <input id="POSTongterminalCode" type="text" class="form-control"  placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="POSTongremark">备注:</label>
                            <input id="POSTongremark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="HuiYinTong">
                        <hr/>
                        <h4 class="modal-title" id="unionpays">汇银通pos</h4>
                        <input type="hidden"  id="HuiYinTongCallback">
                        <input type="hidden"  id="huiYinTongTypes">
                        <input type="hidden"  id="huiYinTongPayType">
                        <div class="form-group">
                            <label class="control-label" for="huiYinTongType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="huiYinTongType" multiple class="form-control select2">
                                <option th:each="HuiYinTong : ${paytypes}" th:value="${HuiYinTong}" th:text="${HuiYinTong.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="InstNo"><span class="asterisk">*</span>机构号:</label>
                            <input id="InstNo" type="text" class="form-control"  placeholder="输入机构号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="MerchId"><span class="asterisk">*</span>商户号:</label>
                            <input id="MerchId" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="TermId"><span class="asterisk">*</span>终端号:</label>
                            <input id="TermId" type="text" class="form-control" placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="huiYinTongKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="huiYinTongKey" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="remark2">备注:</label>
                            <input id="huiYinTongremark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="bocom">
                        <hr/>
                        <h4 class="modal-title" id="bocoms">交通银行</h4>
                        <input type="hidden"  id="bocomIsCallback">
                        <input type="hidden"  id="bocomTypes">
                        <input type="hidden"  id="bocomPayType">
                        <div class="form-group">
                            <label class="control-label" for="bocomType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="bocomType" multiple class="form-control select2">
                                <option th:each="bocomType : ${paytypes}" th:value="${bocomType}" th:text="${bocomType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="bocomMerPtcId"><span class="asterisk">*</span>商户号:</label>
                            <input id="bocomMerPtcId" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="bocomAppID"><span class="asterisk">*</span>appid:</label>
                            <input id="bocomAppID" type="text" class="form-control"  placeholder="输入appid">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="myPrivateKey"><span class="asterisk">*</span>商户生成的私钥:</label>
                            <input id="myPrivateKey" type="text" class="form-control" placeholder="输入商户生成的私钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="apigwPublicKey"><span class="asterisk">*</span>金融开放平台公钥:</label>
                            <input id="apigwPublicKey" type="text" class="form-control" placeholder="输入金融开放平台公钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="bocomCallbacks" style="display:none">
                            <label class="control-label" for="bocomCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="bocomCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="bocomRemark">备注:</label>
                            <input id="bocomRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="SandHippo">
                        <hr/>
                        <h4 class="modal-title" id="SandHippos">杉德河马付聚合支付</h4>
                        <input type="hidden"  id="SandHippoTypes">
                        <input type="hidden"  id="SandHippoPayType">
                        <div class="form-group">
                            <label class="control-label" for="SandHippoType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="SandHippoType" multiple class="form-control select2">
                                <option th:each="SandHippoType : ${paytypes}" th:value="${SandHippoType}" th:text="${SandHippoType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="SandHippoAppId"><span class="asterisk">*</span>代理商号:</label>
                            <input id="SandHippoAppId" type="text" class="form-control"  placeholder="输入代理商号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="SandHippoSubAppId">河马付商户号:</label>
                            <input id="SandHippoSubAppId" type="text" class="form-control"  placeholder="输入河马付商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="SandHippoPrivateKey"><span class="asterisk">*</span>私钥:</label>
                            <input id="SandHippoPrivateKey" type="text" class="form-control" placeholder="输入私钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="platPublicKey"><span class="asterisk">*</span>平台公钥:</label>
                            <input id="platPublicKey" type="text" class="form-control" placeholder="输入平台公钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="storeId"><span class="asterisk">*</span>门店号:</label>
                            <input id="storeId" type="text" class="form-control" placeholder="输入门店号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="SandHippoRemark">备注:</label>
                            <input id="SandHippoRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="laKaLa">
                        <hr/>
                        <h4 class="modal-title" id="laKaLas">拉卡拉</h4>
                        <input type="hidden"  id="laKaLaIsCallback">
                        <input type="hidden"  id="laKaLaTypes">
                        <input type="hidden"  id="laKaLaPayType">
                        <div class="form-group">
                            <label class="control-label" for="laKaLaType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="laKaLaType" multiple class="form-control select2">
                                <option th:each="laKaLaType : ${paytypes}" th:value="${laKaLaType}" th:text="${laKaLaType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="laKaLaAppid"><span class="asterisk">*</span>appid:</label>
                            <input id="laKaLaAppid" type="text" class="form-control"  placeholder="输入appid">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="laKaLaMchSerialNo"><span class="asterisk">*</span>商户证书序列号:</label>
                            <input id="laKaLaMchSerialNo" type="text" class="form-control"  placeholder="输入商户证书序列号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="laKaLaMerchantNo"><span class="asterisk">*</span>商户号:</label>
                            <input id="laKaLaMerchantNo" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="laKaLaTermNo"><span class="asterisk">*</span>终端号:</label>
                            <input id="laKaLaTermNo" type="text" class="form-control" placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="laKaLaUploadFile"><span class="asterisk">*</span>选择导入私钥证书文件:</label>
                            <input type="file" id="laKaLaUploadFile" />
                            <a id="laKaLaStartUpload" href="javascript:void(0);" onclick="laKaLaUploadFile(0);">开始上传</a>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="laKaLaUploadFilePu"><span class="asterisk">*</span>选择导入拉卡拉公钥证书文件:</label>
                            <input type="file" id="laKaLaUploadFilePu" />
                            <a id="laKaLaStartUploadPU" href="javascript:void(0);" onclick="laKaLaUploadFilePu(0);">开始上传</a>
                        </div>
                        <div class="form-group" id="laKaLaCallbacks" style="display:none">
                            <label class="control-label" for="laKaLaCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="laKaLaCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="laKaLaRemark">备注:</label>
                            <input id="laKaLaRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="psbc">
                        <hr/>
                        <h4 class="modal-title" id="psbcs">邮政</h4>
                        <input type="hidden"  id="psbcIsCallback">
                        <input type="hidden"  id="psbcTypes">
                        <input type="hidden"  id="psbcPayType">
                        <div class="form-group">
                            <label class="control-label" for="psbcType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="psbcType" multiple class="form-control select2">
                                <option th:each="psbcType : ${paytypes}" th:value="${psbcType}" th:text="${psbcType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="psbcMercId"><span class="asterisk">*</span>商户号:</label>
                            <input id="psbcMercId" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="psbcRemark">备注:</label>
                            <input id="psbcRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="saobei">
                        <hr/>
                        <h4 class="modal-title" id="saobeis">扫呗</h4>
                        <input type="hidden"  id="saobeiIsCallback">
                        <input type="hidden"  id="saobeiTypes">
                        <input type="hidden"  id="saobeiPayType">
                        <div class="form-group">
                            <label class="control-label" for="saobeiType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="saobeiType" multiple class="form-control select2">
                                <option th:each="saobeiType : ${paytypes}" th:value="${saobeiType}" th:text="${saobeiType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="saobeiMerchantNo"><span class="asterisk">*</span>商户号:</label>
                            <input id="saobeiMerchantNo" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="saobeiTerminalId"><span class="asterisk">*</span>终端号:</label>
                            <input id="saobeiTerminalId" type="text" class="form-control" placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="saobeiTokenKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="saobeiTokenKey" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="saobeiRemark">备注:</label>
                            <input id="saobeiRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="haike">
                        <hr/>
                        <h4 class="modal-title" id="haikes">嗨客</h4>
                        <input type="hidden"  id="haikeIsCallback">
                        <input type="hidden"  id="haikeTypes">
                        <input type="hidden"  id="haikePayType">
                        <div class="form-group">
                            <label class="control-label" for="haikeType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="haikeType" multiple class="form-control select2">
                                <option th:each="haikeType : ${paytypes}" th:value="${haikeType}" th:text="${haikeType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="haikemerchantNum"><span class="asterisk">*</span>商户号:</label>
                            <input id="haikemerchantNum" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="haikeappid"><span class="asterisk">*</span>appid:</label>
                            <input id="haikeappid" type="text" class="form-control" placeholder="输入appid">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="haikestoreNum"><span class="asterisk">*</span>门店编号:</label>
                            <input id="haikestoreNum" type="text" class="form-control" placeholder="输入门店编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="haikestaffNum"><span class="asterisk">*</span>员工编号:</label>
                            <input id="haikestaffNum" type="text" class="form-control" placeholder="输入员工编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="haikekey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="haikekey" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="haikeRemark">备注:</label>
                            <input id="haikeRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="fuyou">
                        <hr/>
                        <h4 class="modal-title" id="fuyous">富友</h4>
                        <input type="hidden"  id="fuyouIsCallback">
                        <input type="hidden"  id="fuyouTypes">
                        <input type="hidden"  id="fuyouPayType">
                        <div class="form-group">
                            <label class="control-label" for="fuyouType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="fuyouType" multiple class="form-control select2">
                                <option th:each="fuyouType : ${paytypes}" th:value="${fuyouType}" th:text="${fuyouType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="fuyoumchntCd"><span class="asterisk">*</span>商户号:</label>
                            <input id="fuyoumchntCd" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="fuyouRemark">备注:</label>
                            <input id="fuyouRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>


                    <div id="longzhimeng">
                        <hr/>
                        <h4 class="modal-title" id="longzhimengs">进钱吧</h4>
                        <input type="hidden"  id="longzhimengIsCallback">
                        <input type="hidden"  id="longzhimengTypes">
                        <input type="hidden"  id="longzhimengPayType">
                        <div class="form-group">
                            <label class="control-label" for="longzhimengType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="longzhimengType" multiple class="form-control select2">
                                <option th:each="longzhimengType : ${paytypes}" th:value="${longzhimengType}" th:text="${longzhimengType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>

                        <div class="form-group">
                            <label class="control-label" for="longzhimengmchId"><span class="asterisk">*</span>商户号mchId:</label>
                            <input id="longzhimengmchId" type="text" class="form-control" placeholder="进钱吧提供商户号">
                            <div class="help-block with-errors"></div>
                        </div>

                        <div class="form-group">
                            <label class="control-label" for="longzhimengappid"><span class="asterisk">*</span>进钱吧appid:</label>
                            <input id="longzhimengappid" type="text" class="form-control" placeholder="进钱吧渠道提供">
                            <div class="help-block with-errors"></div>
                        </div>

                        <div class="form-group">
                            <label class="control-label" for="longzhimengmd5"><span class="asterisk">*</span>Md5Key:</label>
                            <textarea id="longzhimengmd5" class="form-control" cols="50" rows="3" placeholder="md5密钥key"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>

                    </div>



                    <div th:replace="~{channel/alischool :: add}"> </div>
                    <div th:replace="~{channel/zhongshantong :: add}"></div>
                    <div th:replace="~{channel/zhaohangyiwangtong :: add}"></div>
                    <div th:replace="~{channel/quzhouyimafu :: add}"></div>
                    <div th:replace="~{channel/jianhangshenghuo :: add}"></div>
                    <div th:replace="~{channel/ccbpay :: add}"></div>
                    <div th:replace="~{channel/yinsheng :: add}"></div>
                    <div th:replace="~{channel/lanzhou :: add}"></div>
                    <div th:replace="~{channel/nonghangjf :: add}"></div>


                </form>
            </div>
            <div class="modal-footer">
                <button onclick="yin()" type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="submit" form="addForm" class="btn btn-primary"
                        data-action="{type:'submit',form:'#addForm',url:'@{/company/add}',after:'$.myAction.refreshTable'}">
                    确定
                </button>
            </div>
        </div>
    </div>
</div>
<!-- edit Modal -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="editModalLabel">修改商户信息</h4>
            </div>
            <div class="modal-body">
                <form id="editForm">
                    <div class="form-group">
                        <label class="control-label" for="editcompanyName"><span class="asterisk">*</span>商户名称:</label>
                        <input id="editcompanyName" type="text" class="form-control" name="companyName" placeholder="商户名称"
                               minlength="3" required>
                        <div class="help-block with-errors"></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="edituserName"><span class="asterisk">*</span>用户名:</label>
                        <input id="edituserName" type="text" class="form-control" name="userName" placeholder="用户名"
                               minlength="3" required>
                        <div class="help-block with-errors"></div>
                    </div>

                    <div class="form-group">
                        <label class="control-label" ><span class="asterisk">*</span>需要配置设备:</label>
                        需要<input type="radio"  name="isEverySet" id="editxiuyao" value="1" onclick="editispayvisible(1)">
                        不需要<input type="radio" name="isEverySet" id="editbuxiuyao" value="0" onclick="editispayvisible(0)">
                        <div class="help-block with-errors" ></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" ><span class="asterisk">*</span>是否锁定:</label>
                        是<input type="radio"  name="locked" id="editevery" value="1">
                        否<input type="radio" name="locked" id="editevery1" value="0">
                        <div class="help-block with-errors"></div>
                    </div>
                    <input type="hidden" id="editid" name="id">
                    <input type="hidden" id="editpayChannel" name="payChannel">
                    <input type="hidden" id="companyId" name="companyId">
                    <input type="hidden" id="editoldpayChannel" name="oldPayChannel">
                    <div class="form-group" id="editZFQD">
                        <label class="control-label" for="edittype"><span class="asterisk">*</span>支付渠道:</label>
                        <select name="type" id="edittype" multiple class="form-control select2">
                            <option th:each="type : ${types}" th:value="${type.infoId}" th:text="${type.info}">
                                支付渠道
                            </option>
                        </select>
                        <div class="help-block with-errors"></div>

                    </div>
                    <div class="form-group">
                        <label class="control-label" for="editcontactName">联系人:</label>
                        <input id="editcontactName" type="text" class="form-control" name="contactName" placeholder="联系人"
                               minlength="3">
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="editcontactNumber">联系电话:</label>
                        <input id="editcontactNumber" type="text" class="form-control" name="contactNumber" placeholder="联系电话"
                               minlength="3">
                        <div class="help-block with-errors"></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="editcontactAddress">联系地址:</label>
                        <input id="editcontactAddress" type="text" class="form-control" name="contactAddress" placeholder="联系地址"
                               minlength="3">
                        <div class="help-block with-errors"></div>
                    </div>
                    <div id="editWX">
                        <hr/>
                        <h4 class="modal-title" id="editwxzf">微信支付</h4>

                        <input type="hidden"  id="editpayType">
                        <input type="hidden"  id="editwxIsCallback">
                        <div class="form-group">
                            <label class="control-label" for="editpaytype1"><span class="asterisk">*</span>支付类型:</label>
                            <select name="editpaytype1" id="editpaytype1" multiple class="form-control select2">
                                <option th:each="paytype : ${paytypes}" th:value="${paytype.payType}" th:text="${paytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" ><span class="asterisk">*</span>需要子商户:</label>
                            需要<input type="radio"  name="editwxIsEvery" id="editwxXiuyaoZiShangHu" value="1" onclick="editwxIsZiShangHu()">
                            不需要<input type="radio" name="editwxIsEvery" id="editwxBuxiuyaoZiShangHu" value="0" onclick="editwxIsbuZiShangHu()" checked>
                            <div class="help-block with-errors" ></div>
                        </div>
                        <div class="form-group" id="editwxZiAppID" style="display:none">
                            <label class="control-label" for="WXChildAppID"><span class="asterisk">*</span>子商户AppID:</label>
                            <input id="editWXChildAppID"  type="text" class="form-control"  placeholder="输入子商户AppID">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editappID"><span class="asterisk">*</span>AppID:</label>
                            <input id="editappID" type="text" class="form-control"  placeholder="输入AppID">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editmchid"><span class="asterisk">*</span>商户号:</label>
                            <input id="editmchid" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editkey"><span class="asterisk">*</span>API密钥:</label>
                            <input id="editkey" type="text" class="form-control" placeholder="输入API密钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editAppSecret">开发者密码:</label>
                            <input id="editAppSecret" type="text" class="form-control" placeholder="输入开发者密码">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editunionpaytype"><span class="asterisk">*</span>选择导入的文件:</label>
                            <input type="file" id="editupload-file" />
                            <a id="editstart-upload" href="javascript:void(0);" onclick="uploadFile(1);">开始上传</a>
                        </div>
                        <div class="form-group" id="editwxCallbacks" style="display:none">
                            <label class="control-label" for="WXCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="editWXCallback"  type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editremark">备注:</label>
                            <input id="editremark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editZF">
                        <hr/>
                        <h4 class="modal-title" id="editzfb">支付宝支付</h4>

                        <input type="hidden"  id="editpayType2">
                        <input type="hidden"  id="editaliIsCallback">
                        <div class="form-group">
                            <label class="control-label" for="editzpaytype"><span class="asterisk">*</span>支付类型:</label>
                            <select name="zpaytype" id="editzpaytype" multiple class="form-control select2">
                                <option th:each="zpaytype : ${paytypes}" th:value="${zpaytype.payType}" th:text="${zpaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editpid"><span class="asterisk">*</span>Pid:</label>
                            <textarea id="editpid" class="form-control" cols="50" rows="3" placeholder="输入Pid"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editappID1"><span class="asterisk">*</span>Appid:</label>
                            <textarea id="editappID1" class="form-control" cols="50" rows="3" placeholder="输入Appid"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editprivateKey"><span class="asterisk">*</span>Privatekey:</label>
                            <textarea id="editprivateKey" class="form-control" cols="50" rows="3" placeholder="输入Privatekey"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editpublicKey"><span class="asterisk">*</span>Publickey:</label>
                            <input id="editpublicKey"  class="form-control" placeholder="输入Publickey">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editalipayPublicKey"><span class="asterisk">*</span>AlipayPublicKey:</label>
                            <input id="editalipayPublicKey" type="text" class="form-control" placeholder="输入AlipayPublicKey">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="editaliCallbacks" style="display:none">
                            <label class="control-label" for="editaliCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="editaliCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="remark1">备注:</label>
                            <input id="editremark1" type="text" class="form-control"  placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editICBC">
                        <hr/>
                        <h4 class="modal-title" id="editicbcpay">工行聚合支付</h4>

                        <input type="hidden"  id="editicbcPayType">
                        <div class="form-group">
                            <label class="control-label" for="editicbcPayTypeselect"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editicbcPayTypeselect" name="editicbcPayTypeselect" multiple class="form-control select2">
                                <option th:each="icbcpaytype : ${paytypes}" th:value="${icbcpaytype.payType}" th:text="${icbcpaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <!--<div class="form-group">
                            <label class="control-label" for="editicbcMchid"><span class="asterisk">*</span>Mchid:</label>
                            <input id="editicbcMchid" type="text" class="form-control"  placeholder="输入Mchid">
                            <div class="help-block with-errors"></div>
                        </div>-->
                        <div class="form-group">
                            <label class="control-label" for="editicbcAppId"><span class="asterisk">*</span>AppId:</label>
                            <input id="editicbcAppId" type="text" class="form-control" placeholder="输入AppId">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editmerSerId"><span class="asterisk">*</span>商户或服务商编号:</label>
                            <input id="editmerSerId" type="text" class="form-control" placeholder="输入商户或服务商编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editmerSerPrtclNo"><span class="asterisk">*</span>商户或服务商收单产品协议编号:</label>
                            <input id="editmerSerPrtclNo" type="text" class="form-control" placeholder="输入商户或服务商收单产品协议编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editicbcPrivateKey"><span class="asterisk">*</span>私钥:</label>
                            <textarea id="editicbcPrivateKey" class="form-control" cols="50" rows="3" placeholder="输入私钥"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editicbcPublicKey"><span class="asterisk">*</span>公钥:</label>
                            <textarea id="editicbcPublicKey" class="form-control" cols="50" rows="3" placeholder="输入公钥"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editicbcRemark">备注:</label>
                            <input id="editicbcRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editUNION">
                        <hr/>
                        <h4 class="modal-title" id="editunionpay">银联支付</h4>
                        <input type="hidden"  id="editunionIsCallback">
                        <input type="hidden"  id="editpayType3">
                        <div class="form-group">
                            <label class="control-label" for="editunionpaytype"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editunionpaytype" name="editunionpaytype" multiple class="form-control select2">
                                <option th:each="unionpaytype : ${paytypes}" th:value="${unionpaytype.payType}" th:text="${unionpaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editmchid1"><span class="asterisk">*</span>Mchid:</label>
                            <input id="editmchid1" type="text" class="form-control"  placeholder="输入Mchid">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editkey1"><span class="asterisk">*</span>Key:</label>
                            <input id="editkey1" type="text" class="form-control" placeholder="输入Key">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="editunionCallbacks" style="display:none">
                            <label class="control-label" for="editunionCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="editunionCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editremark2">备注:</label>
                            <input id="editremark2" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editQDNS">
                        <hr/>
                        <h4 class="modal-title" id="editqingDaoNongShang">青岛农商</h4>

                        <input type="hidden"  id="editpayType4">
                        <div class="form-group">
                            <label class="control-label" for="editqingDaoNongShangtype"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editqingDaoNongShangtype" name="editqingDaoNongShangtype" multiple class="form-control select2">
                                <option th:each="qingDaoNongShangtype : ${paytypes}" th:value="${qingDaoNongShangtype.payType}" th:text="${qingDaoNongShangtype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editcommid"><span class="asterisk">*</span>商户标识:</label>
                            <input id="editcommid" type="text" class="form-control"  placeholder="输入商户标识">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editcommoperid"><span class="asterisk">*</span>商户操作员编号:</label>
                            <input id="editcommoperid" type="text" class="form-control" placeholder="输入商户操作员编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editcommstoreno"><span class="asterisk">*</span>商户门店编号:</label>
                            <input id="editcommstoreno" type="text" class="form-control" placeholder="输入商户门店编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editdevsn"><span class="asterisk">*</span>机器终端编号:</label>
                            <input id="editdevsn" type="text" class="form-control" placeholder="输入机器终端编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editqingDaoNongShangkey"><span class="asterisk">*</span>商户秘钥:</label>
                            <input id="editqingDaoNongShangkey" type="text" class="form-control" placeholder="输入商户秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editremark3">备注:</label>
                            <input id="editremark3" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editShouQianBa">
                        <hr/>
                        <h4 class="modal-title" id="editShouQianBaTi">收钱吧</h4>

                        <input type="hidden"  id="editShouQianBaPayTypes">
                        <div class="form-group">
                            <label class="control-label" for="editShouQianBaPayType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editShouQianBaPayType" name="editShouQianBaPayType" multiple class="form-control select2">
                                <option th:each="ShouQianBaPaytype : ${paytypes}" th:value="${ShouQianBaPaytype.payType}" th:text="${ShouQianBaPaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editterminal_sn"><span class="asterisk">*</span>终端号:</label>
                            <input id="editterminal_sn" type="text" class="form-control"  placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editterminal_key"><span class="asterisk">*</span>终端密钥:</label>
                            <input id="editterminal_key" type="text" class="form-control" placeholder="输入终端密钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editremark4">备注:</label>
                            <input id="editremark4" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editccbb">
                        <hr/>
                        <h4 class="modal-title" id="editccbbpay">龙支付</h4>
                        <input type="hidden"  id="editccbbChecked">
                        <input type="hidden"  id="editccbbPayTypes">
                        <div class="form-group">
                            <label class="control-label" for="editccbbPayType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editccbbPayType" name="editccbbPayType" multiple class="form-control select2">
                                <option th:each="ccbbPayType : ${paytypes}" th:value="${ccbbPayType.payType}" th:text="${ccbbPayType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ccbbPayType">聚合支付:</label>
                            <input type="checkbox" id="editcheckboxju" onclick="editcheckboxOnclick(this)"/>
                            <label class="control-label" for="ccbbPayType">人民币数字支付:</label>
                            <input type="checkbox" id="editcheckboxshu" onclick="editcheckboxTwoclick(this)"/>
                            <label class="control-label"  for="ccbbPayType">云闪付:</label>
                            <input type="checkbox" id="editcheckboxThree" onclick="editcheckboxThreeclick(this)"/>
                            <label class="control-label"  for="ccbbPayType">静态码:</label>
                            <input type="checkbox" id="editcheckboxFour" onclick="editcheckboxFourclick(this)"/>
                        </div>
                        <div id="editaggregation">
                            <div class="form-group">
                                <label class="control-label" for="editMERCHANTID"><span class="asterisk">*</span>聚合支付的商户号:</label>
                                <input id="editMERCHANTID" type="text" class="form-control"  placeholder="输入商户号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editPOSID"><span class="asterisk">*</span>聚合支付的柜台号:</label>
                                <input id="editPOSID" type="text" class="form-control" placeholder="输入柜台号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editBRANCHID"><span class="asterisk">*</span>聚合支付的分行号:</label>
                                <input id="editBRANCHID" type="text" class="form-control" placeholder="输入柜台号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editccbbPubKey"><span class="asterisk">*</span>聚合支付的公钥:</label>
                                <textarea id="editccbbPubKey" class="form-control" cols="50" rows="5" placeholder="输入公钥"></textarea>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editUSERID"><span class="asterisk">*</span>操作员号:</label>
                                <input id="editUSERID" type="text" class="form-control" placeholder="输入操作员号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editccbbPASSWORD"><span class="asterisk">*</span>密码:</label>
                                <input id="editccbbPASSWORD" type="text" class="form-control" placeholder="输入密码">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editport"><span class="asterisk">*</span>端口号:</label>
                                <input id="editport" type="text" class="form-control" placeholder="输入端口号">
                                <div class="help-block with-errors"></div>
                            </div>
                        </div>
                        <div id="editDC">
                            <div class="form-group">
                                <label class="control-label" for="editDCMERCHANTID"><span class="asterisk">*</span>人民币数字的商户号:</label>
                                <input id="editDCMERCHANTID" type="text" class="form-control"  placeholder="输入商户号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editDCPOSID"><span class="asterisk">*</span>人民币数字的柜台号:</label>
                                <input id="editDCPOSID" type="text" class="form-control" placeholder="输入柜台号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editDCBRANCHID"><span class="asterisk">*</span>人民币数字的分行号:</label>
                                <input id="editDCBRANCHID" type="text" class="form-control" placeholder="输入分行号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editccbbDCPubKey"><span class="asterisk">*</span>人民币数字的公钥:</label>
                                <textarea id="editccbbDCPubKey" class="form-control" cols="50" rows="5" placeholder="输入公钥"></textarea>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editDCpubKey1"><span class="asterisk">*</span>瓦片公钥(PUBKEY1):</label>
                                <textarea id="editDCpubKey1" class="form-control" cols="50" rows="5" placeholder="输入瓦片公钥(PUBKEY1)"></textarea>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editDCpriKey1"><span class="asterisk">*</span>瓦片私钥(PRIBKEY1):</label>
                                <textarea id="editDCpriKey1" class="form-control" cols="50" rows="5" placeholder="输入瓦片私钥(PRIBKEY1)"></textarea>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editDCpubKey2"><span class="asterisk">*</span>瓦片平台关联密钥对(PUBKEY2):</label>
                                <textarea id="editDCpubKey2" class="form-control" cols="50" rows="5" placeholder="输入瓦片平台关联密钥对(PUBKEY2)"></textarea>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editDCFTCORPID"><span class="asterisk">*</span>瓦片调用方ID:</label>
                                <input id="editDCFTCORPID" type="text" class="form-control" placeholder="输入瓦片调用方ID">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editDCUSERID"><span class="asterisk">*</span>人民币数字的操作员号:</label>
                                <input id="editDCUSERID" type="text" class="form-control" placeholder="输入人民币数字的操作员号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editDCPASSWORD"><span class="asterisk">*</span>人民币数字的操作员密码:</label>
                                <input id="editDCPASSWORD" type="text" class="form-control" placeholder="输入人民币数字的操作员密码">
                                <div class="help-block with-errors"></div>
                            </div>
                        </div>
                        <div id="editUNIONPAYPS">
                            <div class="form-group">
                                <label class="control-label" for="editappidUNIONPAYPS"><span class="asterisk">*</span>appid:</label>
                                <input id="editappidUNIONPAYPS" type="text" class="form-control"  placeholder="输入appid">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editappkeyUNIONPAYPS"><span class="asterisk">*</span>appkey:</label>
                                <input id="editappkeyUNIONPAYPS" type="text" class="form-control"  placeholder="输入appkey">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editmerchantCodeUNIONPAYPS"><span class="asterisk">*</span>商户号:</label>
                                <input id="editmerchantCodeUNIONPAYPS" type="text" class="form-control"  placeholder="输入商户号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editterminalCodeUNIONPAYPS"><span class="asterisk">*</span>终端号:</label>
                                <input id="editterminalCodeUNIONPAYPS" type="text" class="form-control"  placeholder="输入终端号">
                                <div class="help-block with-errors"></div>
                            </div>
                        </div>
                        <div id="editSCANPAY">
                            <h5>以下为建行扫码配置</h5>
                            <div class="form-group">
                                <label class="control-label" for="editmchIdSCANPAY">
                                    <span class="asterisk">*</span>商户号:
                                </label>
                                <input id="editmchIdSCANPAY" type="text" class="form-control"  placeholder="输入商户号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editauthcodeSCANPAY"><span class="asterisk">*
                                </span>授权码 :</label>
                                <input id="editauthcodeSCANPAY" type="text" class="form-control"  placeholder="授权码">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="edittermNoSCANPAY">
                                    <span class="asterisk">*</span>终端编号:</label>
                                <input id="edittermNoSCANPAY" type="text" class="form-control"  placeholder="输入终端编号">
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label class="control-label" for="editposIdSCANPAY"><span class="asterisk">*</span>POSID:
                                </label>
                                <input id="editposIdSCANPAY" type="text" class="form-control"  placeholder="输入POSID">
                                <div class="help-block with-errors"></div>
                            </div>

                            <input type="hidden" id="editkeySCANPAY" value="">
                            <h5>以上为建行扫码配置</h5>
                        </div>


                        <div class="form-group" id="editccbbCallbacks" style="display:none">
                            <label class="control-label" for="editccbbAPPID"><span class="asterisk">*</span>APPID:</label>
                            <input id="editccbbAPPID" type="text" class="form-control" placeholder="输入APPID">
                            <div class="help-block with-errors"></div>
                            <label class="control-label" for="editccbbCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="editccbbCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editccbbremark">备注:</label>
                            <input id="editccbbremark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>



                    <div id="editkancloud">
                        <hr/>
                        <h4 class="modal-title" id="editkancloudpay">移领支付</h4>

                        <input type="hidden"  id="editkancloudTypes">
                        <div class="form-group">
                            <label class="control-label" for="editkancloudType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editkancloudType" name="editkancloudType"  multiple class="form-control select2">
                                <option th:each="kancloudType : ${paytypes}" th:value="${kancloudType.payType}" th:text="${kancloudType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editmerchantNum"><span class="asterisk">*</span>门店编号:</label>
                            <input id="editmerchantNum" type="text" class="form-control"  placeholder="输入门店编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editkancloudKey"><span class="asterisk">*</span>交易密钥:</label>
                            <input id="editkancloudKey" type="text" class="form-control" placeholder="输入交易密钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editkancloudRemark">备注:</label>
                            <input id="editkancloudRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editleshua">
                        <hr/>
                        <h4 class="modal-title" id="editleshuas">乐刷支付</h4>

                        <input type="hidden"  id="editleshuaTypes">
                        <div class="form-group">
                            <label class="control-label" for="editleshuaType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editleshuaType" name="editleshuaType" multiple class="form-control select2">
                                <option th:each="leshuaType : ${paytypes}" th:value="${leshuaType.payType}" th:text="${leshuaType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editleshuamerchantId"><span class="asterisk">*</span>商户号:</label>
                            <input id="editleshuamerchantId" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editleshuaKey"><span class="asterisk">*</span>交易密钥:</label>
                            <input id="editleshuaKey" type="text" class="form-control" placeholder="输入交易密钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editleshuaRemark">备注:</label>
                            <input id="editleshuaRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editchinaums">
                        <hr/>
                        <h4 class="modal-title" id="editchinaumss">大华捷通</h4>

                        <input type="hidden"  id="editchinaumsIsCallback">
                        <input type="hidden"  id="editchinaumsTypes">
                        <div class="form-group">
                            <label class="control-label" for="editchinaumsType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editchinaumsType" name="editchinaumsType" multiple class="form-control select2">
                                <option th:each="chinaumsType : ${paytypes}" th:value="${chinaumsType.payType}" th:text="${chinaumsType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editchinaumsmerchantId"><span class="asterisk">*</span>商户号:</label>
                            <input id="editchinaumsmerchantId" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editchinaumsKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="editchinaumsKey" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editchinaumsdevsn"><span class="asterisk">*</span>终端号:</label>
                            <input id="editchinaumsdevsn" type="text" class="form-control" placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="editchinaumsCallbacks" style="display:none">
                            <label class="control-label" for="editchinaumsCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="editchinaumsCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editchinaumsRemark">备注:</label>
                            <input id="editchinaumsRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editunionschool">
                        <hr/>
                        <h4 class="modal-title" id="editUNIONSCHOLLS">银联校园版</h4>

                        <input type="hidden"  id="editunionschoolIsCallback">
                        <input type="hidden"  id="editunionschoolTypes">
                        <div class="form-group">
                            <label class="control-label" for="editunionschoolType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editunionschoolType" name="editunionschoolType" multiple class="form-control select2">
                                <option th:each="unionschoolType : ${paytypes}" th:value="${unionschoolType.payType}" th:text="${unionschoolType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editunionschoolBrandId"><span class="asterisk">*</span>品牌号:</label>
                            <input id="editunionschoolBrandId" type="text" class="form-control"  placeholder="输入品牌号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editunionschoolOpshopId"><span class="asterisk">*</span>门店号:</label>
                            <input id="editunionschoolOpshopId" type="text" class="form-control" placeholder="输入门店号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editunionschoolBussType"><span class="asterisk">*</span>业务类型:</label>
                            <input id="editunionschoolBussType" type="text" class="form-control" placeholder="输入业务类型">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editunionschoolKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="editunionschoolKey" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="editunionschoolCallbacks" style="display:none">
                            <label class="control-label" for="unionschoolCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="editunionschoolCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editunionschoolRemark">备注:</label>
                            <input id="editunionschoolRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editFuHuiBa">
                        <hr/>
                        <h4 class="modal-title" id="editFuHuiBas">付惠吧</h4>

                        <input type="hidden"  id="editFuHuiBaCallback">
                        <input type="hidden"  id="editFuHuiBaTypes">
                        <div class="form-group">
                            <label class="control-label" for="editFuHuiBaType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editFuHuiBaType" multiple class="form-control select2" name="editFuHuiBaType">
                                <option th:each="FuHuiBaType : ${paytypes}" th:value="${FuHuiBaType.payType}" th:text="${FuHuiBaType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editFuHuiBaKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="editFuHuiBaKey" type="text" class="form-control"  placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editFuHuiBaRemark">备注:</label>
                            <input id="editFuHuiBaRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editabc">
                        <hr/>
                        <h4 class="modal-title" id="editabcs">中国农行</h4>

                        <input type="hidden"  id="editabcCallback">
                        <input type="hidden"  id="editabcBu">
                        <input type="hidden"  id="editabcTypes">
                        <div class="form-group">
                            <label class="control-label" for="editabcbType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editabcbType" name="editabcbType" multiple class="form-control select2">
                                <option th:each="editabcbType : ${paytypes}" th:value="${editabcbType.payType}" th:text="${editabcbType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editabcmerchantID"><span class="asterisk">*</span>商家号:</label>
                            <input id="editabcmerchantID" type="text" class="form-control"  placeholder="输入商家号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editabcmerchantPrivateKey"><span class="asterisk">*</span>商家密码:</label>
                            <input id="editabcmerchantPrivateKey" type="text" class="form-control"  placeholder="输入商家密码">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editreceiveAccount">收款方账号:</label>
                            <input id="editreceiveAccount" type="text" class="form-control"  placeholder="输入收款方账号">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editterminalNo"><span class="asterisk">*</span>扫码支付终端号:</label>
                            <input id="editterminalNo" type="text" class="form-control"  placeholder="输入扫码支付终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="abcupload-file"><span class="asterisk">*</span>选择导入(.pfx)文件:</label>
                            <input type="file" id="editabcupload-file" />
                            <a id="editabcstart-upload" href="javascript:void(0);" onclick="abcuploadFile(0);">开始上传</a>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editabcRemark">备注:</label>
                            <input id="editabcRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editqsf">
                        <hr/>
                        <h4 class="modal-title" id="editqsfs">轻松付</h4>
                        <input type="hidden"  id="editqsfIsCallback">
                        <input type="hidden"  id="editqsftypes">
                        <div class="form-group">
                            <label class="control-label" for="editqsftype"><span class="asterisk">*</span>支付类型:</label>
                            <select name="editqsftype"  id="editqsftype" multiple class="form-control select2">
                                <option th:each="qsftype : ${paytypes}" th:value="${qsftype.payType}" th:text="${qsftype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" ><span class="asterisk">*</span>需要子商户:</label>
                            需要<input type="radio"  name="qsfIsEvery" id="editqsfXiuyaoZiShangHu" value="1" onclick="editqsfIsZiShangHu()">
                            不需要<input type="radio" name="qsfIsEvery" id="editqsfBuxiuyaoZiShangHu" value="0" onclick="editqsfIsbuZiShangHu()" checked>
                            <div class="help-block with-errors" ></div>
                        </div>
                        <div class="form-group" id="editqsfZiAppID" style="display:none">
                            <label class="control-label" for="editqsfChildAppID"><span class="asterisk">*</span>子商户AppID:</label>
                            <input id="editqsfChildAppID" type="text" class="form-control"  placeholder="输入子商户AppID">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="editqsfsubMchids" style="display:none">
                            <label class="control-label" for="editqsfSubMchid"><span class="asterisk">*</span>子商户号:</label>
                            <input id="editqsfSubMchid" type="text" class="form-control"  placeholder="输入子商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editwxChannel"><span class="asterisk">*</span>通道:1.轻松付，2:微信人脸，3:k12</label>
                            <input id="editwxChannel" type="text" class="form-control"  placeholder="输入通道">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editqsfappID"><span class="asterisk">*</span>AppID:</label>
                            <input id="editqsfappID" type="text" class="form-control"  placeholder="输入AppID">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editqsfmchid"><span class="asterisk">*</span>商户号:</label>
                            <input id="editqsfmchid" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editqsfmchSerialNo"><span class="asterisk">*</span>商户证书序列号:</label>
                            <input id="editqsfmchSerialNo" type="text" class="form-control"  placeholder="输入商户证书序列号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editqsfSchoolId">学校编号(1填写):</label>
                            <input id="editqsfSchoolId" type="text" class="form-control"  placeholder="输入学校编号">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editqsfOrganizationId">机构id(2填写):</label>
                            <input id="editqsfOrganizationId" type="text" class="form-control"  placeholder="输入机构id">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editqsfcertificate"><span class="asterisk">*</span>微信支付平台证书:</label>
                            <textarea id="editqsfcertificate" class="form-control" cols="50" rows="3" placeholder="输入微信支付平台证书"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editwechatpaySerial"><span class="asterisk">*</span>微信支付平台证书序列号:</label>
                            <textarea id="editwechatpaySerial" class="form-control" cols="50" rows="3" placeholder="输入微信支付平台证书序列号"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editapiV3Key"><span class="asterisk">*</span>APIv3秘钥:</label>
                            <textarea id="editapiV3Key" class="form-control" cols="50" rows="3" placeholder="输入APIv3秘钥"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editqsfkey">API密钥(2可以选填):</label>
                            <input id="editqsfkey" type="text" class="form-control"  placeholder="输入API密钥">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editqsfprivateKey"><span class="asterisk">*</span>私钥:</label>
                            <textarea id="editqsfprivateKey" class="form-control" cols="50" rows="3" placeholder="输入私钥"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>


                        <div class="form-group">
                            <label class="control-label" for="editqsfremark">备注:</label>
                            <input id="editqsfremark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editHuiYinTong">
                        <hr/>
                        <h4 class="modal-title" id="editunionpays">汇银通pos</h4>
                        <input type="hidden"  id="editHuiYinTongCallback">
                        <input type="hidden"  id="edithuiYinTongTypes">
                        <input type="hidden"  id="edithuiYinTongPayType">
                        <div class="form-group">
                            <label class="control-label" for="edithuiYinTongType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="edithuiYinTongType" name="edithuiYinTongType" multiple class="form-control select2">
                                <option th:each="HuiYinTong : ${paytypes}" th:value="${HuiYinTong.payType}" th:text="${HuiYinTong.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editInstNo"><span class="asterisk">*</span>机构号:</label>
                            <input id="editInstNo" type="text" class="form-control"  placeholder="输入机构号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editMerchId"><span class="asterisk">*</span>商户号:</label>
                            <input id="editMerchId" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editTermId"><span class="asterisk">*</span>终端号:</label>
                            <input id="editTermId" type="text" class="form-control" placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="edithuiYinTongKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="edithuiYinTongKey" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="edithuiYinTongremark">备注:</label>
                            <input id="edithuiYinTongremark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editbocom">
                        <hr/>
                        <h4 class="modal-title" id="editbocoms">交通银行</h4>
                        <input type="hidden"  id="editbocomIsCallback">
                        <input type="hidden"  id="editbocomTypes">
                        <input type="hidden"  id="editbocomPayType">
                        <div class="form-group">
                            <label class="control-label" for="editbocomType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editbocomType" name="editbocomType" multiple class="form-control select2">
                                <option th:each="editbocomType : ${paytypes}" th:value="${editbocomType.payType}" th:text="${editbocomType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editbocomMerPtcId"><span class="asterisk">*</span>商户号:</label>
                            <input id="editbocomMerPtcId" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editbocomAppID"><span class="asterisk">*</span>appid:</label>
                            <input id="editbocomAppID" type="text" class="form-control"  placeholder="输入appid">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editmyPrivateKey"><span class="asterisk">*</span>商户生成的私钥:</label>
                            <input id="editmyPrivateKey" type="text" class="form-control" placeholder="输入商户生成的私钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editapigwPublicKey"><span class="asterisk">*</span>金融开放平台公钥:</label>
                            <input id="editapigwPublicKey" type="text" class="form-control" placeholder="输入金融开放平台公钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="editbocomCallbacks" style="display:none">
                            <label class="control-label" for="bocomCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="editbocomCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editbocomRemark">备注:</label>
                            <input id="editbocomRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editlaKaLa">
                        <hr/>
                        <h4 class="modal-title" id="editlaKaLas">拉卡拉</h4>
                        <input type="hidden"  id="editlaKaLaIsCallback">
                        <input type="hidden"  id="editlaKaLaTypes">
                        <input type="hidden"  id="editlaKaLaPayType">
                        <div class="form-group">
                            <label class="control-label" for="editlaKaLaType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editlaKaLaType" name="editlaKaLaType" multiple class="form-control select2">
                                <option th:each="editlaKaLaType : ${paytypes}" th:value="${editlaKaLaType.payType}" th:text="${editlaKaLaType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editlaKaLaAppid"><span class="asterisk">*</span>appid:</label>
                            <input id="editlaKaLaAppid" type="text" class="form-control"  placeholder="输入appid">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editlaKaLaMchSerialNo"><span class="asterisk">*</span>商户证书序列号:</label>
                            <input id="editlaKaLaMchSerialNo" type="text" class="form-control"  placeholder="输入商户证书序列号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editlaKaLaMerchantNo"><span class="asterisk">*</span>商户号:</label>
                            <input id="editlaKaLaMerchantNo" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editlaKaLaTermNo"><span class="asterisk">*</span>终端号:</label>
                            <input id="editlaKaLaTermNo" type="text" class="form-control" placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editlaKaLaUploadFile"><span class="asterisk">*</span>选择导入私钥证书文件:</label>
                            <input type="file" id="editlaKaLaUploadFile" />
                            <a id="editlaKaLaStartUpload" href="javascript:void(1);" onclick="laKaLaUploadFile(1);">开始上传</a>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editlaKaLaUploadFilePu"><span class="asterisk">*</span>选择导入拉卡拉公钥证书文件:</label>
                            <input type="file" id="editlaKaLaUploadFilePu" />
                            <a id="editlaKaLaStartUploadPU" href="javascript:void(1);" onclick="laKaLaUploadFilePu(1);">开始上传</a>
                        </div>
                        <div class="form-group" id="editlaKaLaCallbacks" style="display:none">
                            <label class="control-label" for="editlaKaLaCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="editlaKaLaCallback" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editlaKaLaRemark">备注:</label>
                            <input id="editlaKaLaRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editpsbc">
                        <hr/>
                        <h4 class="modal-title" id="editpsbcs">邮政</h4>
                        <input type="hidden"  id="editpsbcIsCallback">
                        <input type="hidden"  id="editpsbcTypes">
                        <input type="hidden"  id="editpsbcPayType">
                        <div class="form-group">
                            <label class="control-label" for="editpsbcType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editpsbcType" name="editpsbcType"  multiple class="form-control select2">
                                <option th:each="editpsbcType : ${paytypes}" th:value="${editpsbcType.payType}" th:text="${editpsbcType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editpsbcMercId"><span class="asterisk">*</span>商户号:</label>
                            <input id="editpsbcMercId" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editpsbcRemark">备注:</label>
                            <input id="editpsbcRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editsaobei">
                        <hr/>
                        <h4 class="modal-title" id="editsaobeis">扫呗</h4>
                        <input type="hidden"  id="editsaobeiIsCallback">
                        <input type="hidden"  id="editsaobeiTypes">
                        <input type="hidden"  id="editsaobeiPayType">
                        <div class="form-group">
                            <label class="control-label" for="editsaobeiType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editsaobeiType" name="editsaobeiType" multiple class="form-control select2">
                                <option th:each="editsaobeiType : ${paytypes}" th:value="${editsaobeiType.payType}" th:text="${editsaobeiType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editsaobeiMerchantNo"><span class="asterisk">*</span>商户号:</label>
                            <input id="editsaobeiMerchantNo" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editsaobeiTerminalId"><span class="asterisk">*</span>终端号:</label>
                            <input id="editsaobeiTerminalId" type="text" class="form-control" placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editsaobeiTokenKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="editsaobeiTokenKey" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editsaobeiRemark">备注:</label>
                            <input id="editsaobeiRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="edithaike">
                        <hr/>
                        <h4 class="modal-title" id="edithaikes">嗨客</h4>
                        <input type="hidden"  id="edithaikeIsCallback">
                        <input type="hidden"  id="edithaikeTypes">
                        <input type="hidden"  id="edithaikePayType">
                        <div class="form-group">
                            <label class="control-label" for="edithaikeType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="edithaikeType" name="edithaikeType" multiple class="form-control select2">
                                <option th:each="edithaikeType : ${paytypes}" th:value="${edithaikeType.payType}" th:text="${edithaikeType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="edithaikemerchantNum"><span class="asterisk">*</span>商户号:</label>
                            <input id="edithaikemerchantNum" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="edithaikeappid"><span class="asterisk">*</span>appid:</label>
                            <input id="edithaikeappid" type="text" class="form-control" placeholder="输入appid">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="edithaikestoreNum"><span class="asterisk">*</span>门店编号:</label>
                            <input id="edithaikestoreNum" type="text" class="form-control" placeholder="输入门店编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="edithaikestaffNum"><span class="asterisk">*</span>员工编号:</label>
                            <input id="edithaikestaffNum" type="text" class="form-control" placeholder="输入员工编号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="edithaikekey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="edithaikekey" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="edithaikeRemark">备注:</label>
                            <input id="edithaikeRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editfuyou">
                        <hr/>
                        <h4 class="modal-title" id="editfuyous">富友</h4>
                        <input type="hidden"  id="editfuyouIsCallback">
                        <input type="hidden"  id="editfuyouTypes">
                        <input type="hidden"  id="editfuyouPayType">
                        <div class="form-group">
                            <label class="control-label" for="editfuyouType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editfuyouType" name="editfuyouType" multiple class="form-control select2">
                                <option th:each="editfuyouType : ${paytypes}" th:value="${editfuyouType.payType}" th:text="${editfuyouType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editfuyoumchntCd"><span class="asterisk">*</span>商户号:</label>
                            <input id="editfuyoumchntCd" type="text" class="form-control" placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editfuyouRemark">备注:</label>
                            <input id="editfuyouRemark" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="editlongzhimeng">
                        <hr/>
                        <h4 class="modal-title" id="editlongzhimengs">进钱吧</h4>
                        <input type="hidden"  id="editlongzhimengIsCallback">
                        <input type="hidden"  id="editlongzhimengTypes">
                        <input type="hidden"  id="editlongzhimengPayType">
                        <div class="form-group">
                            <label class="control-label" for="editlongzhimengType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="editlongzhimengType" name="editlongzhimengType" multiple class="form-control select2">
                                <option th:each="editlongzhimengType : ${paytypes}" th:value="${editlongzhimengType.payType}" th:text="${editlongzhimengType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editlongzhimengmchId"><span class="asterisk">*</span>商户号mchId:</label>
                            <input id="editlongzhimengmchId" type="text" class="form-control" placeholder="进钱吧提供商户号">
                            <div class="help-block with-errors"></div>
                        </div>

                        <div class="form-group">
                            <label class="control-label" for="editlongzhimengappid"><span class="asterisk">*</span>进钱吧appid:</label>
                            <input id="editlongzhimengappid" type="text" class="form-control" placeholder="进钱吧渠道提供">
                            <div class="help-block with-errors"></div>
                        </div>

                        <div class="form-group">
                            <label class="control-label" for="editlongzhimengmd5"><span class="asterisk">*</span>Md5Key:</label>
                            <textarea id="editlongzhimengmd5" class="form-control" cols="50" rows="3" placeholder="md5密钥key"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>

                    </div>


                    <div th:replace="~{channel/alischool :: edit}"> </div>
                    <div th:replace="~{channel/zhongshantong :: edit}"> </div>
                    <div th:replace="~{channel/zhaohangyiwangtong :: edit}"></div>
                    <div th:replace="~{channel/quzhouyimafu :: edit}"></div>
                    <div th:replace="~{channel/jianhangshenghuo :: edit}"></div>
                    <div th:replace="~{channel/ccbpay :: edit}"></div>
                    <div th:replace="~{channel/yinsheng :: edit}"></div>
                    <div th:replace="~{channel/lanzhou :: edit}"></div>
                    <div th:replace="~{channel/nonghangjf :: edit}"></div>

                </form>
            </div>
            <div class="modal-footer">
                <button onclick="edityin()" type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="submit" form="editForm" class="btn btn-primary"
                        data-action="{type:'submit',form:'#editForm',url:'@{/company/update}',after:'$.myAction.refreshTable'}">
                    确定
                </button>
            </div>
        </div>
    </div>
</div>
<!-- details Modal -->
<div class="modal fade" id="detailsModal" tabindex="-1" role="dialog" aria-labelledby="addModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="detailsModalLabel">商户信息详情</h4>
            </div>
            <div class="modal-body">
                <form id="detailsForm">
                    <div class="form-group">
                        <label class="control-label" for="companyName"><span class="asterisk">*</span>商户名称:</label>
                        <input id="detailscompanyName" type="text" class="form-control" name="companyName" placeholder="商户名称"
                               minlength="3" disabled="disabled">
                        <div class="help-block with-errors"></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="userName"><span class="asterisk">*</span>用户名:</label>
                        <input id="detailsuserName" type="text" class="form-control" name="userName" placeholder="用户名"
                               minlength="3" disabled="disabled">
                        <div class="help-block with-errors"></div>
                    </div>

                    <div class="form-group">
                        <label class="control-label" ><span class="asterisk">*</span>需要配置设备:</label>
                        需要<input type="radio"  name="isEverySet" id="detailsxiuyao" value="1" disabled="disabled">
                        不需要<input type="radio" name="isEverySet" id="detailsbuxiuyao" value="0" disabled="disabled">
                        <div class="help-block with-errors" ></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" ><span class="asterisk">*</span>是否锁定:</label>
                        是<input type="radio"  name="locked" id="detailsevery" value="1" disabled="disabled">
                        否<input type="radio" name="locked" id="detailsevery1" value="0" disabled="disabled">
                        <div class="help-block with-errors"></div>
                    </div>
                    <div class="form-group" id="detailsZFQD">
                        <label class="control-label" for="type"><span class="asterisk">*</span>支付渠道:</label>
                        <select name="type" id="detailstype" multiple class="form-control select2" disabled="disabled">
                            <option th:each="type : ${types}" th:value="${type.infoId}" th:text="${type.info}">
                                支付渠道
                            </option>
                        </select>
                        <div class="help-block with-errors"></div>

                    </div>
                    <div class="form-group">
                        <label class="control-label" for="contactName">联系人:</label>
                        <input id="detailscontactName" type="text" class="form-control" name="contactName" placeholder="联系人"
                               minlength="3" disabled="disabled">
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="contactNumber">联系电话:</label>
                        <input id="detailscontactNumber" type="text" class="form-control" name="contactNumber" placeholder="联系电话"
                               minlength="3" disabled="disabled">
                        <div class="help-block with-errors"></div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="contactAddress">联系地址:</label>
                        <input id="detailscontactAddress" type="text" class="form-control" name="contactAddress" placeholder="联系地址"
                               minlength="3" disabled="disabled">
                        <div class="help-block with-errors"></div>
                    </div>
                    <div id="detailsWX">
                        <hr/>
                        <h4 class="modal-title" id="detailswxzf">微信支付</h4>

                        <div class="form-group">
                            <label class="control-label" for="type"><span class="asterisk">*</span>支付类型:</label>
                            <select name="detailspaytype1" id="detailspaytype1" multiple class="form-control select2" disabled="disabled">
                                <option th:each="paytype : ${paytypes}" th:value="${paytype.payType}" th:text="${paytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" ><span class="asterisk">*</span>需要子商户:</label>
                            需要<input type="radio"  name="detailswxIsEvery" id="detailswxXiuyaoZiShangHu" value="1" disabled="disabled">
                            不需要<input type="radio" name="detailswxIsEvery" id="detailswxBuxiuyaoZiShangHu" value="0" disabled="disabled">
                            <div class="help-block with-errors" ></div>
                        </div>
                        <div class="form-group" id="detailswxZiAppID" style="display:none">
                            <label class="control-label" for="WXChildAppID"><span class="asterisk">*</span>子商户AppID:</label>
                            <input id="detailsWXChildAppID" type="text" class="form-control"  placeholder="输入子商户AppID" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsappID"><span class="asterisk">*</span>AppID:</label>
                            <input id="detailsappID" type="text" class="form-control"  placeholder="输入AppID" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsmchid"><span class="asterisk">*</span>Mchid:</label>
                            <input id="detailsmchid" type="text" class="form-control"  placeholder="输入Mchid" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailskey"><span class="asterisk">*</span>Key:</label>
                            <input id="detailskey" type="text" class="form-control" placeholder="输入Key" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="detailswxCallbacks" style="display:none">
                            <label class="control-label" for="WXCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="detailsWXCallback" type="text" class="form-control" placeholder="输入回调地址" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="editremark">备注:</label>
                            <input id="detailsremark" type="text" class="form-control" placeholder="输入备注" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailsZF">
                        <hr/>
                        <h4 class="modal-title" id="detailszfb">支付宝支付</h4>

                        <div class="form-group">
                            <label class="control-label" for="type"><span class="asterisk">*</span>支付类型:</label>
                            <select name="zpaytype" id="detailszpaytype" multiple class="form-control select2" disabled="disabled">
                                <option th:each="zpaytype : ${paytypes}" th:value="${zpaytype.payType}" th:text="${zpaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailspid"><span class="asterisk">*</span>Pid:</label>
                            <textarea id="detailspid" class="form-control" cols="50" rows="3" placeholder="输入Pid" disabled="disabled"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsappID1"><span class="asterisk">*</span>Appid:</label>
                            <textarea id="detailsappID1" class="form-control" cols="50" rows="3" placeholder="输入Appid" disabled="disabled"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsprivateKey"><span class="asterisk">*</span>Privatekey:</label>
                            <textarea id="detailsprivateKey" class="form-control" cols="50" rows="3" placeholder="输入Privatekey" disabled="disabled"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailspublicKey"><span class="asterisk">*</span>Publickey:</label>
                            <input id="detailspublicKey"  class="form-control" placeholder="输入Publickey" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsalipayPublicKey"><span class="asterisk">*</span>AlipayPublicKey:</label>
                            <input id="detailsalipayPublicKey" type="text" class="form-control" placeholder="输入AlipayPublicKey" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsremark1">备注:</label>
                            <input id="detailsremark1" type="text" class="form-control"  placeholder="输入备注" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailsICBC">
                        <hr/>
                        <h4 class="modal-title" id="detailsicbcpay">工行聚合支付</h4>

                        <input type="hidden"  id="detailsicbcPayType">
                        <div class="form-group">
                            <label class="control-label" for="detailsicbcPayTypeselect"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="detailsicbcPayTypeselect" name="detailsicbcPayTypeselect" multiple class="form-control select2" disabled="disabled">
                                <option th:each="icbcpaytype : ${paytypes}" th:value="${icbcpaytype.payType}" th:text="${icbcpaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <!--<div class="form-group">
                            <label class="control-label" for="detailsicbcMchid"><span class="asterisk">*</span>Mchid:</label>
                            <input id="detailsicbcMchid" type="text" class="form-control"   disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>-->
                        <div class="form-group">
                            <label class="control-label" for="detailsicbcAppId"><span class="asterisk">*</span>AppId:</label>
                            <input id="detailsicbcAppId" type="text" class="form-control"  disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsicbcPrivateKey"><span class="asterisk">*</span>Privatekey:</label>
                            <textarea id="detailsicbcPrivateKey" class="form-control" cols="50" rows="3"  disabled="disabled"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsicbcPublicKey"><span class="asterisk">*</span>PublicKey:</label>
                            <textarea id="detailsicbcPublicKey" class="form-control" cols="50" rows="3"  disabled="disabled"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsicbcRemark">备注:</label>
                            <input id="detailsicbcRemark" type="text" class="form-control" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailsUNION">
                        <hr/>
                        <h4 class="modal-title" id="detailsunionpay">银联支付</h4>

                        <input type="hidden"  id="detailspayType3">
                        <div class="form-group">
                            <label class="control-label" for="detailsunionpaytype"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="detailsunionpaytype" name="detailsunionpaytype" multiple class="form-control select2" disabled="disabled">
                                <option th:each="unionpaytype : ${paytypes}" th:value="${unionpaytype.payType}" th:text="${unionpaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mchid1"><span class="asterisk">*</span>Mchid:</label>
                            <input id="detailsmchid1" type="text" class="form-control"  placeholder="输入Mchid" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="key1"><span class="asterisk">*</span>Key:</label>
                            <input id="detailskey1" type="text" class="form-control" placeholder="输入Key" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="detailsunionCallbacks" style="display:none">
                            <label class="control-label" for="detailsunionCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="detailsunionCallback" type="text" class="form-control" placeholder="输入回调地址" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="remark2">备注:</label>
                            <input id="detailsremark2" type="text" class="form-control" placeholder="输入备注" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailsQDNS">
                        <hr/>
                        <h4 class="modal-title" id="detailsqingDaoNongShang">青岛农商</h4>
                        <div class="form-group">
                            <label class="control-label" for="detailsqingDaoNongShangtype"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="detailsqingDaoNongShangtype" name="detailsqingDaoNongShangtype" multiple class="form-control select2" disabled="disabled">
                                <option th:each="qingDaoNongShangtype : ${paytypes}" th:value="${qingDaoNongShangtype.payType}" th:text="${qingDaoNongShangtype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailscommid">商户标识:</label>
                            <input id="detailscommid" type="text" class="form-control"  placeholder="输入商户标识" disabled="disabled">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailscommoperid"><span class="asterisk">*</span>商户操作员编号:</label>
                            <input id="detailscommoperid" type="text" class="form-control" placeholder="输入商户操作员编号" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailscommstoreno"><span class="asterisk">*</span>商户门店编号:</label>
                            <input id="detailscommstoreno" type="text" class="form-control" placeholder="输入商户门店编号" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsdevsn"><span class="asterisk">*</span>机器终端编号:</label>
                            <input id="detailsdevsn" type="text" class="form-control" placeholder="输入机器终端编号" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsqingDaoNongShangkey"><span class="asterisk">*</span>商户秘钥:</label>
                            <input id="detailsqingDaoNongShangkey" type="text" class="form-control" placeholder="输入商户秘钥" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsremark3">备注:</label>
                            <input id="detailsremark3" type="text" class="form-control" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailsShouQianBa">
                        <hr/>
                        <h4 class="modal-title" id="detailsShouQianBaTi">收钱吧</h4>

                        <div class="form-group">
                            <label class="control-label" for="detailsShouQianBaPayType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="detailsShouQianBaPayType" disabled="disabled" name="detailsShouQianBaPayType" multiple class="form-control select2">
                                <option th:each="ShouQianBaPaytype : ${paytypes}" th:value="${ShouQianBaPaytype.payType}" th:text="${ShouQianBaPaytype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsterminal_sn"><span class="asterisk">*</span>终端号:</label>
                            <input id="detailsterminal_sn" disabled="disabled" type="text" class="form-control"  placeholder="输入终端号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsterminal_key"><span class="asterisk">*</span>终端密钥:</label>
                            <input id="detailsterminal_key" disabled="disabled" type="text" class="form-control" placeholder="输入终端密钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsremark4">备注:</label>
                            <input id="detailsremark4" disabled="disabled" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailsccbb">
                        <hr/>
                        <h4 class="modal-title" id="detailsccbbpay">龙支付</h4>

                        <div class="form-group">
                            <label class="control-label" for="detailsccbbPayType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="detailsccbbPayType" disabled="disabled" name="detailsccbbPayType" multiple class="form-control select2">
                                <option th:each="ccbbPayType : ${paytypes}" th:value="${ccbbPayType.payType}" th:text="${ccbbPayType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsMERCHANTID"><span class="asterisk">*</span>商户号:</label>
                            <input id="detailsMERCHANTID" disabled="disabled" type="text" class="form-control"  placeholder="输入商户号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsPOSID"><span class="asterisk">*</span>柜台号:</label>
                            <input id="detailsPOSID" disabled="disabled" type="text" class="form-control" placeholder="输入柜台号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsBRANCHID"><span class="asterisk">*</span>分行号:</label>
                            <input id="detailsBRANCHID" disabled="disabled" type="text" class="form-control" placeholder="输入柜台号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsccbbPubKey"><span class="asterisk">*</span>公钥:</label>
                            <input id="detailsccbbPubKey" disabled="disabled" type="text" class="form-control" placeholder="输入公钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsccbbremark">备注:</label>
                            <input id="detailsccbbremark" disabled="disabled" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailskancloud">
                        <hr/>
                        <h4 class="modal-title" id="detailskancloudpay">移领支付</h4>

                        <div class="form-group">
                            <label class="control-label" for="detailskancloudType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="detailskancloudType" multiple class="form-control select2" disabled="disabled" name="detailskancloudType">
                                <option th:each="kancloudType : ${paytypes}" th:value="${kancloudType.payType}" th:text="${kancloudType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsmerchantNum"><span class="asterisk">*</span>门店编号:</label>
                            <input id="detailsmerchantNum" type="text" class="form-control"  placeholder="输入门店编号" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailskancloudKey"><span class="asterisk">*</span>交易密钥:</label>
                            <input id="detailskancloudKey" type="text" class="form-control" placeholder="输入交易密钥" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailskancloudRemark">备注:</label>
                            <input id="detailskancloudRemark" type="text" class="form-control" placeholder="输入备注" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailsleshua">
                        <hr/>
                        <h4 class="modal-title" id="detailsleshuas">乐刷支付</h4>

                        <input type="hidden"  id="detailsleshuaTypes">
                        <div class="form-group">
                            <label class="control-label" for="detailsleshuaType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="detailsleshuaType" name="detailsleshuaType" multiple class="form-control select2" disabled="disabled">
                                <option th:each="leshuaType : ${paytypes}" th:value="${leshuaType.payType}" th:text="${leshuaType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsleshuamerchantId"><span class="asterisk">*</span>商户号:</label>
                            <input id="detailsleshuamerchantId" type="text" class="form-control"  placeholder="输入商户号" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsleshuaKey"><span class="asterisk">*</span>交易密钥:</label>
                            <input id="detailsleshuaKey" type="text" class="form-control" placeholder="输入交易密钥" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsleshuaRemark">备注:</label>
                            <input id="detailsleshuaRemark" type="text" class="form-control" placeholder="输入备注" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailschinaums">
                        <hr/>
                        <h4 class="modal-title" id="detailschinaumss">大华捷通</h4>
                        <div class="form-group">
                            <label class="control-label" for="detailschinaumsType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="detailschinaumsType" name="detailschinaumsType" multiple class="form-control select2" disabled="disabled">
                                <option th:each="chinaumsType : ${paytypes}" th:value="${chinaumsType.payType}" th:text="${chinaumsType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailschinaumsmerchantId"><span class="asterisk">*</span>商户号:</label>
                            <input id="detailschinaumsmerchantId" type="text" class="form-control"  placeholder="输入商户号" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailschinaumsKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="detailschinaumsKey" type="text" class="form-control" placeholder="输入秘钥" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailschinaumsdevsn"><span class="asterisk">*</span>终端号:</label>
                            <input id="detailschinaumsdevsn" type="text" class="form-control" placeholder="输入终端号" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="detailschinaumsCallbacks" style="display:none">
                            <label class="control-label" for="detailschinaumsCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="detailschinaumsCallback" type="text" class="form-control" placeholder="输入回调地址" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailschinaumsRemark">备注:</label>
                            <input id="detailschinaumsRemark" type="text" class="form-control" placeholder="输入备注" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailsunionschool">
                        <hr/>
                        <h4 class="modal-title" id="detailsUNIONSCHOLLS">银联校园版</h4>

                        <input type="hidden"  id="detailsunionschoolIsCallback">
                        <input type="hidden"  id="detailsunionschoolTypes">
                        <div class="form-group">
                            <label class="control-label" for="detailsunionschoolType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="detailsunionschoolType" name="detailsunionschoolType" disabled="disabled" multiple class="form-control select2">
                                <option th:each="unionschoolType : ${paytypes}" th:value="${unionschoolType.payType}" th:text="${unionschoolType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsunionschoolBrandId"><span class="asterisk">*</span>品牌号:</label>
                            <input id="detailsunionschoolBrandId" disabled="disabled" type="text" class="form-control"  placeholder="输入品牌号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsunionschoolOpshopId"><span class="asterisk">*</span>门店号:</label>
                            <input id="detailsunionschoolOpshopId" disabled="disabled" type="text" class="form-control" placeholder="输入门店号">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsunionschoolBussType"><span class="asterisk">*</span>业务类型:</label>
                            <input id="detailsunionschoolBussType" disabled="disabled" type="text" class="form-control" placeholder="输入业务类型">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsunionschoolKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="detailsunionschoolKey" disabled="disabled" type="text" class="form-control" placeholder="输入秘钥">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="detailsunionschoolCallbacks" style="display:none">
                            <label class="control-label" for="detailsunionschoolCallback"><span class="asterisk">*</span>回调地址:</label>
                            <input id="detailsunionschoolCallback" disabled="disabled" type="text" class="form-control" placeholder="输入回调地址">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsunionschoolRemark">备注:</label>
                            <input id="detailsunionschoolRemark" disabled="disabled" type="text" class="form-control" placeholder="输入备注">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailsFuHuiBa">
                        <hr/>
                        <h4 class="modal-title" id="detailsFuHuiBas">付惠吧</h4>

                        <input type="hidden"  id="detailsFuHuiBaCallback">
                        <input type="hidden"  id="detailsFuHuiBaTypes">
                        <div class="form-group">
                            <label class="control-label" for="detailsFuHuiBaType"><span class="asterisk">*</span>支付类型:</label>
                            <select  id="detailsFuHuiBaType" multiple class="form-control select2" name="detailsFuHuiBaType" disabled="disabled">
                                <option th:each="FuHuiBaType : ${paytypes}" th:value="${FuHuiBaType.payType}" th:text="${FuHuiBaType.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsFuHuiBaKey"><span class="asterisk">*</span>秘钥:</label>
                            <input id="detailsFuHuiBaKey" type="text" class="form-control"  placeholder="输入秘钥" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsFuHuiBaRemark">备注:</label>
                            <input id="detailsFuHuiBaRemark" type="text" class="form-control" placeholder="输入备注" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>

                    <div id="detailsqsf">
                        <hr/>
                        <h4 class="modal-title" id="detailsqsfs">轻松付</h4>
                        <div class="form-group">
                            <label class="control-label" for="detailsqsftype"><span class="asterisk">*</span>支付类型:</label>
                            <select name="detailsqsftype"  id="detailsqsftype" multiple class="form-control select2" disabled="disabled">
                                <option th:each="qsftype : ${paytypes}" th:value="${qsftype.payType}" th:text="${qsftype.payTypeName}">
                                    支付渠道
                                </option>
                            </select>
                            <div class="help-block with-errors"></div>

                        </div>
                        <div class="form-group">
                            <label class="control-label" ><span class="asterisk">*</span>需要子商户:</label>
                            需要<input type="radio"  name="qsfIsEvery" id="detailsqsfXiuyaoZiShangHu" value="1"  disabled="disabled">
                            不需要<input type="radio" name="qsfIsEvery" id="detailsqsfBuxiuyaoZiShangHu" value="0" disabled="disabled" checked>
                            <div class="help-block with-errors" ></div>
                        </div>
                        <div class="form-group" id="detailsqsfZiAppID" style="display:none">
                            <label class="control-label" for="detailsqsfChildAppID"><span class="asterisk">*</span>子商户AppID:</label>
                            <input id="detailsqsfChildAppID" type="text" class="form-control"  placeholder="输入子商户AppID" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group" id="detailsqsfsubMchids" style="display:none">
                            <label class="control-label" for="detailsqsfSubMchid"><span class="asterisk">*</span>子商户号:</label>
                            <input id="detailsqsfSubMchid" type="text" class="form-control"  placeholder="输入子商户号" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsqsfappID"><span class="asterisk">*</span>AppID:</label>
                            <input id="detailsqsfappID" type="text" class="form-control"  placeholder="输入AppID" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsqsfmchid"><span class="asterisk">*</span>商户号:</label>
                            <input id="detailsqsfmchid" type="text" class="form-control"  placeholder="输入商户号" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsqsfmchSerialNo"><span class="asterisk">*</span>商户证书序列号:</label>
                            <input id="detailsqsfmchSerialNo" type="text" class="form-control"  placeholder="输入商户证书序列号" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsqsfSchoolId"><span class="asterisk">*</span>学校编号:</label>
                            <input id="detailsqsfSchoolId" type="text" class="form-control"  placeholder="输入学校编号" disabled="disabled">
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsqsfcertificate"><span class="asterisk">*</span>微信支付平台证书:</label>
                            <textarea disabled="disabled" id="detailsqsfcertificate" class="form-control" cols="50" rows="3" placeholder="输入微信支付平台证书"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsqsfprivateKey"><span class="asterisk">*</span>私钥:</label>
                            <textarea disabled="disabled" id="detailsqsfprivateKey" class="form-control" cols="50" rows="3" placeholder="输入私钥"></textarea>
                            <div class="help-block with-errors"></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="detailsqsfremark">备注:</label>
                            <input id="detailsqsfremark" type="text" class="form-control" placeholder="输入备注" disabled="disabled">
                            <div class="help-block with-errors"></div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button onclick="detailsyin()" type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>

<!-- delete modal -->
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-labelledby="deleteSmallModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="deleteSmallModalLabel">删除商户</h4>
            </div>
            <div class="modal-body">
                <form id="deleteForm"></form>
                确定要删除选中的 <span class="records"></span> 条记录?
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" form="deleteForm" class="btn btn-primary"
                        data-action="{type:'submit',form:'#deleteForm',url:'@{/company/delete-batch}',after:'$.myAction.refreshTable'}">
                    确定
                </button>
            </div>
        </div>
    </div>
</div>
<div id="actionButtons" class="admin-hide">
    <a class="like" href="javascript:void(0)" data-toggle="tooltip" title="详情"><i class="glyphicon glyphicon-heart"></i></a>　
    <a shiro:hasPermission="company:update" class="edit ml10" href="javascript:void(0)" data-toggle="tooltip" title="编辑"><i class="glyphicon glyphicon-edit"></i></a>　
    <a shiro:hasPermission="company:delete" class="remove ml10" href="javascript:void(0)" data-toggle="tooltip" title="删除"><i class="glyphicon glyphicon-remove"></i></a>　
</div>
<script th:inline="javascript">


    function addLine() {
        var i=$("#SuiXingFei").val();
        document.getElementById("SuiXingFei").value=parseInt(i)+1;
        var row = account.insertRow();
        for (var j = 0; j < 3; j++) {
            var col = row.insertCell();
            switch (j) {
                case 0:
                    col.align = "center";
                    col.innerHTML = "<input type='text' id='mno"+i+"' name='payCompanyInfos["+$("#SuiXingPayIsCallback").val()+"].suiXingPay.fashionableVos["+i+"].merchantId' style='width:95%' value=''\>";
                    break;
                case 1:
                    col.align = "center";
                    col.innerHTML = "<input type='text' name='payCompanyInfos["+$("#SuiXingPayIsCallback").val()+"].suiXingPay.fashionableVos["+i+"].percent' style='width:95%' value=''\>";
                    break;
                case 2:
                    col.align = "center";
                    col.innerHTML = "<input type='text' name='payCompanyInfos["+$("#SuiXingPayIsCallback").val()+"].suiXingPay.fashionableVos["+i+"].merchantMame' style='width:95%' value=''\>";
                    break;
            }
        }
    }

    function signing() {
        var start=parseInt($("#startSigning").val());
        var mno=$("#mno").val();
        if (mno==undefined || mno==""){
            alert("请填写主体的商户号");
        }else {
            if (start==0){
                $.ajax({
                    type:'POST',
                    url:CONTEXT_PATH +"/suixingfu/applyifo",
                    data:{mno:mno},
                    dataType:"json",
                    success:function(data){
                        var b=data;
                        if (b==0){
                            alert("申请失败，无法分账");
                        }else {
                            alert("申请签约成功，跳转分账同意协议");
                            window.open(data);
                            alert("分账同意协议如果被拦截，请复制次网址用浏览器打开:"+data);
                            document.getElementById("startSigning").value=1;
                            document.getElementById("idSigning").value="查询签约状态";
                        }
                    },error: function (data) {
                        alert(data);
                    }
                });
            }else if (start==1){
                $.ajax({
                    type:'POST',
                    url:CONTEXT_PATH +"/suixingfu/selectapplyifo",
                    data:{mno:mno},
                    dataType:"json",
                    success:function(data){
                        var b=parseInt(data);
                        if (b==1){
                            alert("签约成功");
                            document.getElementById("startSigning").value=2;
                            document.getElementById("idSigning").value="分账签约";
                        }else {
                            alert("失败");
                        }
                    },error: function (data) {
                        alert(data);
                    }
                });
            } else if (start==2){
                var i=parseInt($("#SuiXingFei").val());

                if (i>0){
                    var ids = new Array(i);
                    for(var index = 0;index < i;index++){
                        var mnos=$("#mno"+index+"").val();
                        ids[index] =mnos;
                    }
                    $.ajax({
                        type:'POST',
                        url:CONTEXT_PATH +"/suixingfu/setMnoArray",
                        data:{ids:ids,mno:mno},
                        traditional: true,
                        dataType:"json",
                        success:function(data){
                            var b=parseInt(data);
                            if (b==1){
                                alert("签约成功");
                                document.getElementById("startSigning").value=3;
                                document.getElementById("idSigning").value="分账签约成功";
                                $("#idSigning").attr("disabled","disabled");
                            }else {
                                alert("失败");
                            }
                        },error: function (data) {
                            alert(data);
                        }
                    });
                }else {
                    alert("请新增分账商户完毕再申请分账");
                }
            }
        }
    }

    function addQueRen(i) {

        var start=parseInt($("#start"+i+"").val());

        var mno=$("#mno"+i+"").val();

        if (start==0){
            $.ajax({
                type:'POST',
                url:CONTEXT_PATH +"/suixingfu/applyifo",
                data:{mno:mno},
                dataType:"json",
                success:function(data){
                    var b=parseInt(data);
                    if (b==1){
                        document.getElementById(""+i+"percent").value="查询签约状态";
                        document.getElementById("start"+i+"").value=1;
                        alert("申请签约成功");
                    }else {
                        alert("失败");
                    }
                },error: function (data) {
                    alert(data);
                }
            });
        }else {
            $.ajax({
                type:'POST',
                url:CONTEXT_PATH +"/suixingfu/selectapplyifo",
                data:{mno:mno},
                dataType:"json",
                success:function(data){
                    var b=parseInt(data);
                    if (b==1){
                        document.getElementById(""+i+"percent").value="签约成功";
                        $("#"+i+"percent").attr("disabled","disabled");
                        document.getElementById("start"+i+"").value=2;
                        alert("签约成功");
                    }else {
                        alert("失败");
                    }
                },error: function (data) {
                    alert(data);
                }
            });
        }

    }

    function rmLine() {
        const num = document.getElementById('account').getElementsByTagName('tr').length
        for(let i = 1; i < num; i++) {
            document.getElementById('account').deleteRow(i)
        }
    }

    var $table = $('#table');

    $(function () {
        // bootstrap table初始化
        // http://bootstrap-table.wenzhixin.net.cn/zh-cn/documentation/
        $table.bootstrapTable({
            url: CONTEXT_PATH + '/company/list',
            idField: 'id',
            columns: [
                {field: 'state', checkbox: true},
                {field: 'id', title: '编号', sortable: true, halign: 'left'},
                {field: 'companyName', title: '商户名称', sortable: true, halign: 'left'},
                {field: 'companyId', title: '公司编号', sortable: true, halign: 'left'},
                {field: 'userName', title: '用户名', sortable: false, halign: 'left'},
                {field: 'isEverySet', title: '需要配置设备', sortable: false, halign: 'left',
                    formatter:function(value,row,index){
                        if (value == "0") { return '<div >' + '否' + '</div>'; }
                        else { return '<div >' + '是' + '</div>';  }

                    }
                },
                {field: 'locked', title: '是否锁定', sortable: false, halign: 'left',
                    formatter:function(value,row,index){
                        if (value == "0") { return '<div >' + '否' + '</div>'; }
                        else { return '<div >' + '是' + '</div>';  }

                    }
                },
                {field: 'createTime', title: '创建时间', sortable: false, halign: 'left'},
                {
                    field: 'action',
                    title: '操作',
                    halign: 'center',
                    align: 'center',
                    formatter: 'actionFormatter',
                    events: 'actionEvents',
                    clickToSelect: false
                }
            ]
        });
    });

    // 数据表格展开内容
    function detailFormatter(index, row) {
        var html = [];
        $.each(row, function (key, value) {
            html.push('<p><b>' + key + ':</b> ' + value + '</p>');
        });
        return html.join('');
    }



    function actionFormatter(value, row, index) {
        return $('#actionButtons').html();
    }

    window.actionEvents = {
        'click .like': function (e, value, row, index) {
            $('#detailsModal').modal('show')
            $('#detailsForm').fillForm(row);
            detailsAfter('', row);
            console.log(value, row, index);
        },
        'click .edit': function (e, value, row, index) {
            $('#editModal').modal('show')
            $('#editForm').fillForm(row);
            editAfter('', row);
            console.log(value, row, index);
        },
        'click .remove': function (e, value, row, index) {
            $('#deleteModal').modal('show');
            $('.records').html('1');
            var html = '';
            for (var key in row) {
                html += '<input type="hidden" name="' + key + '" value="' + row[key] + '">';
            }
            $('#deleteForm').html(html);
        }
    };


    function detailsAfter(obj, row) {

        $("#detailsZFQD").hide();
        $("#detailsWX").hide();
        $("#detailsZF").hide();
        $("#detailsUNION").hide();
        $("#detailsQDNS").hide();
        $("#detailsICBC").hide();
        $("#detailsShouQianBa").hide();
        $("#detailskancloud").hide();
        $("#detailsccbb").hide();
        $("#detailsleshua").hide();
        $("#detailschinaums").hide();
        $("#detailsunionschool").hide();
        $("#detailsFuHuiBa").hide();
        $("#detailsqsf").hide();

        var isEverySet =row.isEverySet;
        var payChannel=row.payChannel;

        if (row.locked==1) {
            $("#detailsevery").attr("checked","checked");
            $("#detailsevery1").removeAttr("checked");
        }else {
            $("#detailsevery1").attr("checked","checked");
            $("#detailsevery").removeAttr("checked");
        }

        if (row.isEverySet==1) {
            $("#detailsbuxiuyao").removeAttr("checked");
            $("#detailsxiuyao").attr("checked","checked");

        }else {
            var payCompanyInfos = row.payCompanyInfos;
            //显示文本框
            $("#detailsZFQD").show();
            //判断是否选中支付渠道
            $("#detailsxiuyao").removeAttr("checked");
            $("#detailsbuxiuyao").attr("checked","checked");
            for (i in payCompanyInfos) {
                var payType =payCompanyInfos[i].payType;
                var j =payCompanyInfos[i].payChannel;
                if (j==1){
                    $("#detailsWX").show();
                    var type = "1";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");

                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsremark").value="";
                    }else {
                        document.getElementById("detailsremark").value=payCompanyInfos[i].remark;
                    }
                    //判断是否选中子商户
                    if (payCompanyInfos[i].wxPayJsonVo.childMerchants==null || payCompanyInfos[i].wxPayJsonVo.childMerchants==undefined){
                        $("#detailswxZiAppID").hide();
                        $("#detailswxXiuyaoZiShangHu").removeAttr("checked");
                        $("#detailswxBuxiuyaoZiShangHu").attr("checked","checked");
                    }else {
                        $("#detailswxZiAppID").show();
                        $("#detailswxBuxiuyaoZiShangHu").removeAttr("checked");
                        $("#detailswxXiuyaoZiShangHu").attr("checked","checked");
                        document.getElementById("detailsWXChildAppID").value=payCompanyInfos[i].wxPayJsonVo.childMerchants;
                    }
                    document.getElementById("detailsappID").value=payCompanyInfos[i].wxPayJsonVo.appID;
                    document.getElementById("detailsmchid").value=payCompanyInfos[i].wxPayJsonVo.mchid;
                    document.getElementById("detailskey").value=payCompanyInfos[i].wxPayJsonVo.key;
                    //判断是否有回调地址的选项
                    var isHuiDiao=0;
                    if (payType.substring(0,1) ==1) {
                        isHuiDiao=1;
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailspaytype1]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailspaytype1]').trigger("change");
                        document.getElementById("detailsWXCallback").value=payCompanyInfos[i].wxPayJsonVo.callbackAddress;
                        $("#detailswxCallbacks").show();
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailspaytype1]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailspaytype1]').trigger("change");
                        if (isHuiDiao==0){
                            $("#detailswxCallbacks").hide();
                        }
                    }
                    if (payType.substring(2,3) ==1) {
                        isHuiDiao=1;
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailspaytype1]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailspaytype1]').trigger("change");
                        document.getElementById("detailsWXCallback").value=payCompanyInfos[i].wxPayJsonVo.callbackAddress;
                        $("#detailswxCallbacks").show();
                    }
                }else if (j==2) {
                    $("#detailsZF").show();
                    var type = "2";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");

                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsremark1").value="";
                    }else {
                        document.getElementById("detailsremark1").value=payCompanyInfos[i].remark;
                    }
                    document.getElementById("detailspid").value=payCompanyInfos[i].zfbPayJsonVo.pid;
                    document.getElementById("detailsappID1").value=payCompanyInfos[i].zfbPayJsonVo.appID;
                    document.getElementById("detailsprivateKey").value=payCompanyInfos[i].zfbPayJsonVo.privateKey;
                    document.getElementById("detailspublicKey").value=payCompanyInfos[i].zfbPayJsonVo.publicKey;
                    document.getElementById("detailsalipayPublicKey").value=payCompanyInfos[i].zfbPayJsonVo.alipayPublicKey;

                    if (payType.substring(0,1) ==1) {
                        var groupId = "1";
                        $('#detailsForm').find('[name=zpaytype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=zpaytype]').trigger("change");
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=zpaytype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=zpaytype]').trigger("change");
                    }
                    if (payType.substring(2,3) ==1) {
                        var groupId = "3";
                        $('#detailsForm').find('[name=zpaytype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=zpaytype]').trigger("change");
                    }
                }else if (j==3) {
                    $("#detailsICBC").show();
                    var type = "3";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");

                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsicbcRemark").value="";
                    }else {
                        document.getElementById("detailsicbcRemark").value=payCompanyInfos[i].remark;
                    }
                    //document.getElementById("detailsicbcMchid").value=payCompanyInfos[i].icbcVo.merId;
                    document.getElementById("detailsicbcAppId").value=payCompanyInfos[i].icbcVo.appId;
                    document.getElementById("detailsicbcPrivateKey").value=payCompanyInfos[i].icbcVo.privateKey;
                    document.getElementById("detailsicbcPublicKey").value=payCompanyInfos[i].icbcVo.publicKey;

                    if (payType.substring(0,1) ==1) {
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailsicbcPayTypeselect]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsicbcPayTypeselect]').trigger("change");
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailsicbcPayTypeselect]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsicbcPayTypeselect]').trigger("change");
                    }
                    if (payType.substring(2,3) ==1) {
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailsicbcPayTypeselect]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsicbcPayTypeselect]').trigger("change");
                    }
                }else if (j==4) {
                    $("#detailsUNION").show();
                    var type = "4";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");

                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsremark2").value="";
                    }else {
                        document.getElementById("detailsremark2").value=payCompanyInfos[i].remark;
                    }
                    document.getElementById("detailskey1").value=payCompanyInfos[i].unionJsonPayVo.key;
                    document.getElementById("detailsmchid1").value=payCompanyInfos[i].unionJsonPayVo.mchid;
                    document.getElementById("detailspayType3").value=payType;
                    var isHuiDiao=0;
                    if (payType.substring(0,1) ==1) {
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailsunionpaytype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsunionpaytype]').trigger("change");

                        isHuiDiao=1;
                        document.getElementById("detailsunionCallback").value=payCompanyInfos[i].unionJsonPayVo.callbackAddress;
                        $("#detailsunionCallbacks").show();
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailsunionpaytype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsunionpaytype]').trigger("change");
                        if (isHuiDiao==0){
                            $("#detailsunionCallbacks").hide();
                        }
                    }
                    if (payType.substring(2,3) ==1) {
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailsunionpaytype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsunionpaytype]').trigger("change");

                        isHuiDiao=1;
                        document.getElementById("detailsunionCallback").value=payCompanyInfos[i].unionJsonPayVo.callbackAddress;
                        $("#detailsunionCallbacks").show();
                    }
                }else if (j==5) {
                    $("#detailsQDNS").show();
                    var type = "5";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");
                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsremark3").value="";
                    }else {
                        document.getElementById("detailsremark3").value=payCompanyInfos[i].remark;
                    }
                    document.getElementById("detailscommid").value=payCompanyInfos[i].qingDaoNongShangJsonVo.commid;
                    document.getElementById("detailscommoperid").value=payCompanyInfos[i].qingDaoNongShangJsonVo.commoperid;
                    document.getElementById("detailscommstoreno").value=payCompanyInfos[i].qingDaoNongShangJsonVo.commstoreno;
                    document.getElementById("detailsdevsn").value=payCompanyInfos[i].qingDaoNongShangJsonVo.devsn;
                    document.getElementById("detailsqingDaoNongShangkey").value=payCompanyInfos[i].qingDaoNongShangJsonVo.key;

                    if (payType.substring(0,1) ==1) {
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailsqingDaoNongShangtype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsqingDaoNongShangtype]').trigger("change");
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailsqingDaoNongShangtype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsqingDaoNongShangtype]').trigger("change");
                    }
                    if (payType.substring(2,3) ==1) {
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailsqingDaoNongShangtype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsqingDaoNongShangtype]').trigger("change");
                    }
                }else if (j==6) {
                    $("#detailsShouQianBa").show();
                    var type = "6";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");
                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsremark4").value="";
                    }else {
                        document.getElementById("detailsremark4").value=payCompanyInfos[i].remark;
                    }
                    document.getElementById("detailsterminal_sn").value=payCompanyInfos[i].shouQianBaVo.terminal_sn;
                    document.getElementById("detailsterminal_key").value=payCompanyInfos[i].shouQianBaVo.terminal_key;

                    if (payType.substring(0,1) ==1) {
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailsShouQianBaPayType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsShouQianBaPayType]').trigger("change");
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailsShouQianBaPayType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsShouQianBaPayType]').trigger("change");
                    }
                    if (payType.substring(2,3) ==1) {
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailsShouQianBaPayType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsShouQianBaPayType]').trigger("change");
                    }
                }else if (j==7) {
                    $("#detailsccbb").show();
                    var type = "7";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");
                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsccbbremark").value="";
                    }else {
                        document.getElementById("detailsccbbremark").value=payCompanyInfos[i].remark;
                    }

                    document.getElementById("detailsMERCHANTID").value=payCompanyInfos[i].ccbbVo.merchantid;
                    document.getElementById("detailsPOSID").value=payCompanyInfos[i].ccbbVo.posid;
                    document.getElementById("detailsBRANCHID").value=payCompanyInfos[i].ccbbVo.branchid;
                    document.getElementById("detailsccbbPubKey").value=payCompanyInfos[i].ccbbVo.publicKey;

                    if (payType.substring(0,1) ==1) {
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailsccbbPayType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsccbbPayType]').trigger("change");
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailsccbbPayType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsccbbPayType]').trigger("change");
                    }
                    if (payType.substring(2,3) ==1) {
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailsccbbPayType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsccbbPayType]').trigger("change");
                    }
                }else if (j==8) {
                    $("#detailskancloud").show();
                    var type = "8";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");
                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailskancloudRemark").value="";
                    }else {
                        document.getElementById("detailskancloudRemark").value=payCompanyInfos[i].remark;
                    }
                    document.getElementById("detailsmerchantNum").value=payCompanyInfos[i].kancloudVo.merchant_num;
                    document.getElementById("detailskancloudKey").value=payCompanyInfos[i].kancloudVo.key;

                    if (payType.substring(0,1) ==1) {
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailskancloudType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailskancloudType]').trigger("change");
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailskancloudType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailskancloudType]').trigger("change");
                    }
                    if (payType.substring(2,3) ==1) {
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailskancloudType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailskancloudType]').trigger("change");
                    }
                }else if (j==9) {
                    $("#detailsleshua").show();
                    var type = "9";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");
                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsleshuaRemark").value="";
                    }else {
                        document.getElementById("detailsleshuaRemark").value=payCompanyInfos[i].remark;
                    }
                    document.getElementById("detailsleshuamerchantId").value=payCompanyInfos[i].leShua.merchant_id;
                    document.getElementById("detailsleshuaKey").value=payCompanyInfos[i].leShua.key;

                    if (payType.substring(0,1) ==1) {
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailsleshuaType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsleshuaType]').trigger("change");
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailsleshuaType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsleshuaType]').trigger("change");
                    }
                    if (payType.substring(2,3) ==1) {
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailsleshuaType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsleshuaType]').trigger("change");
                    }
                }else if (j==10) {
                    $("#detailschinaums").show();
                    var type = "10";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");
                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailschinaumsRemark").value="";
                    }else {
                        document.getElementById("detailschinaumsRemark").value=payCompanyInfos[i].remark;
                    }
                    document.getElementById("detailschinaumsmerchantId").value=payCompanyInfos[i].chinaums.merid;
                    document.getElementById("detailschinaumsdevsn").value=payCompanyInfos[i].chinaums.devsn;
                    document.getElementById("detailschinaumsKey").value=payCompanyInfos[i].chinaums.key;
                    var isHuiDiao=0;
                    if (payType.substring(0,1) ==1) {
                        isHuiDiao=1;
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailschinaumsType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailschinaumsType]').trigger("change");
                        document.getElementById("detailschinaumsCallback").value=payCompanyInfos[i].chinaums.callbackAddress;
                        $("#detailschinaumsCallbacks").show();
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailschinaumsType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailschinaumsType]').trigger("change");
                        if (isHuiDiao==0){
                            $("#detailschinaumsCallbacks").hide();
                        }
                    }
                    if (payType.substring(2,3) ==1) {
                        isHuiDiao=1;
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailschinaumsType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailschinaumsType]').trigger("change");
                        document.getElementById("detailschinaumsCallback").value=payCompanyInfos[i].chinaums.callbackAddress;
                        $("#detailschinaumsCallbacks").show();
                    }
                }else if (j==11) {
                    $("#detailsunionschool").show();
                    var type = "11";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");
                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsunionschoolRemark").value="";
                    }else {
                        document.getElementById("detailsunionschoolRemark").value=payCompanyInfos[i].remark;
                    }
                    document.getElementById("detailsunionschoolBrandId").value=payCompanyInfos[i].unionSchool.brand_id;
                    document.getElementById("detailsunionschoolOpshopId").value=payCompanyInfos[i].unionSchool.op_shop_id;
                    document.getElementById("detailsunionschoolBussType").value=payCompanyInfos[i].unionSchool.buss_type;
                    document.getElementById("detailsunionschoolKey").value=payCompanyInfos[i].unionSchool.key;
                    var isHuiDiao=0;
                    if (payType.substring(0,1) ==1) {
                        isHuiDiao=1;
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailsunionschoolType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsunionschoolType]').trigger("change");
                        document.getElementById("detailsunionschoolCallback").value=payCompanyInfos[i].unionSchool.callbackAddress;
                        $("#detailsunionschoolCallbacks").show();
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailsunionschoolType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsunionschoolType]').trigger("change");
                        if (isHuiDiao==0){
                            $("#detailsunionschoolCallbacks").hide();
                        }
                    }
                    if (payType.substring(2,3) ==1) {
                        isHuiDiao=1;
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailsunionschoolType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsunionschoolType]').trigger("change");
                        document.getElementById("detailschinaumsCallback").value=payCompanyInfos[i].unionSchool.callbackAddress;
                        $("#detailsunionschoolCallbacks").show();
                    }
                }else if (j==12) {
                    $("#detailsFuHuiBa").show();
                    var type = "12";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");
                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsFuHuiBaRemark").value="";
                    }else {
                        document.getElementById("detailsFuHuiBaRemark").value=payCompanyInfos[i].remark;
                    }
                    document.getElementById("detailsFuHuiBaKey").value=payCompanyInfos[i].fuHuiBaVo.key;

                    if (payType.substring(0,1) ==1) {
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailsFuHuiBaType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsFuHuiBaType]').trigger("change");
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailsFuHuiBaType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsFuHuiBaType]').trigger("change");
                    }
                    if (payType.substring(2,3) ==1) {
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailsFuHuiBaType]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsFuHuiBaType]').trigger("change");
                    }
                }else if(j==16){
                    $("#detailsqsf").show();
                    var type = "16";
                    $('#detailsForm').find('[name=type]').find('option[value=' + type + ']').prop('selected', true);
                    $('#detailsForm').find('[name=type]').trigger("change");

                    if (payCompanyInfos[i].remark == undefined){
                        document.getElementById("detailsqsfremark").value="";
                    }else {
                        document.getElementById("detailsqsfremark").value=payCompanyInfos[i].remark;
                    }
                    //判断是否选中子商户
                    if (payCompanyInfos[i].qsf.sub_appid==null || payCompanyInfos[i].qsf.sub_appid==undefined){
                        $("#detailsqsfZiAppID").hide();
                        $("#detailsqsfsubMchids").hide();
                        $("#detailsqsfXiuyaoZiShangHu").removeAttr("checked");
                        $("#detailsqsfBuxiuyaoZiShangHu").attr("checked","checked");
                    }else {
                        $("#detailsqsfZiAppID").show();
                        $("#detailsqsfsubMchids").show();
                        $("#detailsqsfBuxiuyaoZiShangHu").removeAttr("checked");
                        $("#detailsqsfXiuyaoZiShangHu").attr("checked","checked");
                        document.getElementById("detailsqsfChildAppID").value=payCompanyInfos[i].qsf.sub_appid;
                        document.getElementById("detailsqsfSubMchid").value=payCompanyInfos[i].qsf.sub_mchid;
                    }
                    document.getElementById("detailsqsfappID").value=payCompanyInfos[i].qsf.appid;
                    document.getElementById("detailsqsfmchid").value=payCompanyInfos[i].qsf.mchid;
                    document.getElementById("detailsqsfmchSerialNo").value=payCompanyInfos[i].qsf.mchSerialNo;
                    document.getElementById("detailsqsfcertificate").value=payCompanyInfos[i].qsf.certificate;
                    document.getElementById("detailsqsfprivateKey").value=payCompanyInfos[i].qsf.privateKey;
                    document.getElementById("detailsqsfSchoolId").value=payCompanyInfos[i].qsf.schoolId;
                    //判断是否有回调地址的选项
                    if (payType.substring(0,1) ==1) {
                        var groupId = "1";
                        $('#detailsForm').find('[name=detailsqsftype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsqsftype]').trigger("change");
                    }
                    if (payType.substring(1,2) ==1) {
                        var groupId = "2";
                        $('#detailsForm').find('[name=detailsqsftype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsqsftype]').trigger("change");
                    }
                    if (payType.substring(2,3) ==1) {
                        var groupId = "3";
                        $('#detailsForm').find('[name=detailsqsftype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsqsftype]').trigger("change");
                    }
                    if (payType.substring(3,4) ==1) {
                        var groupId = "4";
                        $('#detailsForm').find('[name=detailsqsftype]').find('option[value=' + groupId + ']').prop('selected', true);
                        $('#detailsForm').find('[name=detailsqsftype]').trigger("change");
                    }
                }
            }
        }
    }



    /*===============================================修改=========================================================*/



    function detailsyin() {
        $("#detailscontactName").val("");
        $("#detailscontactNumber").val("");
        $("#detailscontactAddress").val("");
        $("#detailsremark").val("");
        $("#detailsremark1").val("");
    }

    function payTypes(reslist){
        var all="";
        var strPaytype="000000";
        for(var i=0;i<reslist.length;i++) {
            all= reslist[i].text;
            if (all=="主扫") {

                strPaytype=replaceChat(strPaytype,0,1);
            }else if (all=="被扫") {
                strPaytype=replaceChat(strPaytype,1,1);
            }else if (all=="统一支付") {
                strPaytype=replaceChat(strPaytype,2,1
                );
            }else if (all=="代扣") {
                strPaytype=replaceChat(strPaytype,3,1);
            }
        }
        return strPaytype;
    }

    function replaceChat(source,pos,newChar){
        //source为原字符串，pos为要修改字符串的指定位置的值，newChar为要修改的值
        if(pos<0||pos>=source.length||source.length==0){
            return "invalid parameters...";
        }
        var iBeginPos= 0, iEndPos=source.length;
        var sFrontPart=source.substr(iBeginPos,pos);
        var sTailPart=source.substr(pos+1,source.length);
        var sRet=sFrontPart+newChar+sTailPart;
        return sRet;
    }
</script>



<script th:src="@{/static/channel/common.js}"></script>
<script th:src="@{/static/channel/common-history.js}"></script>
<script th:src="@{/static/channel/common-edit.js}"></script>


<script th:src="@{/static/channel/alischool.js}"></script>
<script th:src="@{/static/channel/zhongshantong.js}"></script>
<script th:src="@{/static/channel/zhaohangyiwangtong.js}"></script>
<script th:src="@{/static/channel/quzhouyimafu.js}"></script>
<script th:src="@{/static/channel/jianhangshenghuo.js}"></script>
<script th:src="@{/static/channel/yinsheng.js}"></script>
<script th:src="@{/static/channel/lanzhou.js}"></script>
<script th:src="@{/static/channel/nonghangjf.js}"></script>
<script th:src="@{/static/channel/ccbpay.js}"></script>
</html>